# HG changeset patch # User neko259 # Date 2015-01-12 21:47:45 # Node ID a02cd1c04854524f51751e83e0c93ddaf3102274 # Parent 1ad4b54ed5fe07b2a8d70adcbc50562784adb813 Show archived thread death time only for an opening post 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 @@ -19,8 +19,15 @@ title="{% trans 'Quote' %}" {% endif %}>({{ post.id }}) {{ post.title }} {{ post.pub_time }} + {% comment %} + Thread death time needs to be shown only if the thread is alredy archived + and this is an opening post (thread death time) or a post for popup + (we don't see OP here so we show the death time in the post itself). + {% endcomment %} {% if thread.archived %} + {% if is_opening %} — {{ thread.bump_time }} + {% endif %} {% endif %} {% if is_opening and need_open_link %} {% if thread.archived %} @@ -32,11 +39,9 @@ {% if moderator %} - [{% trans 'Edit' %}] + [{% trans 'Edit' %}] {% if is_opening %} - [{% trans 'Edit thread' %}] + [{% trans 'Edit thread' %}] {% endif %} {% endif %}