{% else %}
-
+
{% endif %}
{% if thread.image %}
@@ -64,7 +64,7 @@
{{ thread.get_reply_count }} {% trans 'replies' %},
{{ thread.get_images_count }} {% trans 'images' %}.
- {% if thread.tags.all %}
+ {% if thread.tags.exists %}
{% trans 'Tags' %}:
{% for tag in thread.tags.all %}
{% for post in thread.get_last_replies %}
{% if thread.can_bump %}
-
+
{% else %}
-
+
{% endif %}
{% if post.image %}
diff --git a/boards/templates/boards/thread.html b/boards/templates/boards/thread.html
--- a/boards/templates/boards/thread.html
+++ b/boards/templates/boards/thread.html
@@ -13,7 +13,7 @@
{% if posts %}
{% for post in posts %}
- {% if posts.0.can_bump %}
+ {% if bumpable %}
{% else %}
@@ -53,7 +53,7 @@
{{ post.text.rendered }}
{% endautoescape %}
- {% if post.tags.all %}
+ {% if post.id == posts.0.id %}
{% trans 'Tags' %}:
{% for tag in post.tags.all %}
diff --git a/boards/views.py b/boards/views.py
--- a/boards/views.py
+++ b/boards/views.py
@@ -148,6 +148,7 @@ def thread(request, post_id):
context['posts'] = posts
context['form'] = form
+ context['bumpable'] = posts[0].can_bump()
return render(request, 'boards/thread.html', context)