Show More
@@ -33,7 +33,7 b'' | |||
|
33 | 33 | </div> |
|
34 | 34 | {% endif %} |
|
35 | 35 | <div class="thread"> |
|
36 |
{% for post in t |
|
|
36 | {% for post in posts %} | |
|
37 | 37 | {% if bumpable %} |
|
38 | 38 | <div class="post" id="{{ post.id }}"> |
|
39 | 39 | {% else %} |
@@ -22,8 +22,7 b'' | |||
|
22 | 22 | </div> |
|
23 | 23 | |
|
24 | 24 | <div id="posts-table"> |
|
25 |
{% for post in t |
|
|
26 | {% if post.image %} | |
|
25 | {% for post in posts %} | |
|
27 | 26 |
|
|
28 | 27 |
|
|
29 | 28 |
|
@@ -42,7 +41,6 b'' | |||
|
42 | 41 |
|
|
43 | 42 |
|
|
44 | 43 |
|
|
45 | {% endif %} | |
|
46 | 44 | {% endfor %} |
|
47 | 45 | </div> |
|
48 | 46 | {% endcache %} |
@@ -203,6 +203,10 b' def thread(request, post_id, mode=MODE_N' | |||
|
203 | 203 | |
|
204 | 204 | posts = thread_to_show.get_replies() |
|
205 | 205 | context['form'] = form |
|
206 | context["last_update"] = _datetime_to_epoch(thread_to_show.last_edit_time) | |
|
207 | context["thread"] = thread_to_show | |
|
208 | ||
|
209 | if MODE_NORMAL == mode: | |
|
206 | 210 | context['bumpable'] = thread_to_show.can_bump() |
|
207 | 211 | if context['bumpable']: |
|
208 | 212 | context['posts_left'] = neboard.settings.MAX_POSTS_PER_THREAD - posts \ |
@@ -210,12 +214,13 b' def thread(request, post_id, mode=MODE_N' | |||
|
210 | 214 | context['bumplimit_progress'] = str( |
|
211 | 215 | float(context['posts_left']) / |
|
212 | 216 | neboard.settings.MAX_POSTS_PER_THREAD * 100) |
|
213 | context["last_update"] = _datetime_to_epoch(thread_to_show.last_edit_time) | |
|
214 | context["thread"] = thread_to_show | |
|
215 | 217 | |
|
216 | if MODE_NORMAL == mode: | |
|
218 | context['posts'] = posts | |
|
219 | ||
|
217 | 220 | document = 'boards/thread.html' |
|
218 | 221 | elif MODE_GALLERY == mode: |
|
222 | context['posts'] = posts.filter(image_width__gt=0) | |
|
223 | ||
|
219 | 224 | document = 'boards/thread_gallery.html' |
|
220 | 225 | else: |
|
221 | 226 | raise Http404 |
General Comments 0
You need to be logged in to leave comments.
Login now