Show More
@@ -225,7 +225,6 b' class Parser:' | |||||
225 | 'comment', '<span class="comment">//%(value)s</span>') |
|
225 | 'comment', '<span class="comment">//%(value)s</span>') | |
226 | self.parser.add_simple_formatter( |
|
226 | self.parser.add_simple_formatter( | |
227 | 's', '<span class="strikethrough">%(value)s</span>') |
|
227 | 's', '<span class="strikethrough">%(value)s</span>') | |
228 | # TODO Why not use built-in tag? |
|
|||
229 | self.parser.add_simple_formatter('code', |
|
228 | self.parser.add_simple_formatter('code', | |
230 | '<pre><code>%(value)s</pre></code>', |
|
229 | '<pre><code>%(value)s</pre></code>', | |
231 | render_embedded=False, |
|
230 | render_embedded=False, |
@@ -78,7 +78,7 b' class Post(models.Model, Viewable):' | |||||
78 |
|
78 | |||
79 | poster_ip = models.GenericIPAddressField() |
|
79 | poster_ip = models.GenericIPAddressField() | |
80 |
|
80 | |||
81 | # TODO This field can be removed cause UID is used for update now |
|
81 | # Used for cache and threads updating | |
82 | last_edit_time = models.DateTimeField() |
|
82 | last_edit_time = models.DateTimeField() | |
83 |
|
83 | |||
84 | referenced_posts = models.ManyToManyField('Post', symmetrical=False, |
|
84 | referenced_posts = models.ManyToManyField('Post', symmetrical=False, |
@@ -24,7 +24,7 b'' | |||||
24 | {{ image.get_view }} |
|
24 | {{ image.get_view }} | |
25 | <div class="gallery_image_metadata"> |
|
25 | <div class="gallery_image_metadata"> | |
26 | {{ image.get_size.0 }}x{{ image.get_size.1 }} |
|
26 | {{ image.get_size.0 }}x{{ image.get_size.1 }} | |
27 |
{% image_actions image. |
|
27 | {% image_actions image.file.url request.get_host %} | |
28 | <br /> |
|
28 | <br /> | |
29 | <a href="{{ post.get_absolute_url }}">>>{{ post.id }}</a> |
|
29 | <a href="{{ post.get_absolute_url }}">>>{{ post.id }}</a> | |
30 | </div> |
|
30 | </div> |
@@ -17,10 +17,7 b" TEMPLATE = 'boards/preview.html'" | |||||
17 |
|
17 | |||
18 | class PostPreviewView(View): |
|
18 | class PostPreviewView(View): | |
19 | def get(self, request): |
|
19 | def get(self, request): | |
20 | context = RequestContext(request) |
|
20 | return render(request, TEMPLATE) | |
21 |
|
||||
22 | # TODO Use dict here |
|
|||
23 | return render(request, TEMPLATE, context_instance=context) |
|
|||
24 |
|
21 | |||
25 | def post(self, request): |
|
22 | def post(self, request): | |
26 | params = dict() |
|
23 | params = dict() |
General Comments 0
You need to be logged in to leave comments.
Login now