diff --git a/boards/templates/boards/post.html b/boards/templates/boards/post.html --- a/boards/templates/boards/post.html +++ b/boards/templates/boards/post.html @@ -42,7 +42,7 @@ ; return false;">>>] {% endif %} {% if is_opening and need_open_link %} - {% if post.thread_new.archived %} + {% if thread.archived %} [{% trans "Open" %}] {% else %} [{% trans "Reply" %}] @@ -68,15 +68,17 @@ {{ post.text.rendered }} {% endif %} {% endautoescape %} - {% if post.is_referenced %} -
- {% trans "Replies" %}: - {% for ref_post in post.get_sorted_referenced_posts %} - >>{{ ref_post.id }}{% if not forloop.last %},{% endif %} - {% endfor %} -
- {% endif %} + {% with refposts=post.get_sorted_referenced_posts %} + {% if refposts %} +
+ {% trans "Replies" %}: + {% for ref_post in refposts %} + >>{{ ref_post.id }}{% if not forloop.last %},{% endif %} + {% endfor %} +
+ {% endif %} + {% endwith %} {% endcache %} {% if is_opening %}