Show More
@@ -5,6 +5,8 b'' | |||
|
5 | 5 | {% get_current_language as LANGUAGE_CODE %} |
|
6 | 6 | |
|
7 | 7 | {% cache 600 post post.id thread.last_edit_time truncated moderator LANGUAGE_CODE need_open_link %} |
|
8 | ||
|
9 | {% with is_opening=post.is_opening %} | |
|
8 | 10 | {% spaceless %} |
|
9 | 11 | {% with thread=post.thread_new %} |
|
10 | 12 | {% if thread.archived %} |
@@ -32,8 +34,10 b'' | |||
|
32 | 34 | <div class="message"> |
|
33 | 35 | <div class="post-info"> |
|
34 | 36 | <span class="title">{{ post.title }}</span> |
|
37 | {% cache 600 post_id post.id %} | |
|
35 | 38 | <a class="post_id" href="{% post_url post.id %}"> |
|
36 | 39 | ({{ post.id }}) </a> |
|
40 | {% endcache %} | |
|
37 | 41 | [<span class="pub_time">{{ post.pub_time }}</span>] |
|
38 | 42 | {% if thread.archived %} |
|
39 | 43 | — [{{ thread.bump_time }}] |
@@ -42,7 +46,7 b'' | |||
|
42 | 46 | [<a href="#" onclick="javascript:addQuickReply('{{ post.id }}') |
|
43 | 47 | ; return false;">>></a>] |
|
44 | 48 | {% endif %} |
|
45 |
{% if |
|
|
49 | {% if is_opening and need_open_link %} | |
|
46 | 50 | {% if post.thread_new.archived %} |
|
47 | 51 | [<a class="link" href="{% url 'thread' post.id %}">{% trans "Open" %}</a>] |
|
48 | 52 | {% else %} |
@@ -81,9 +85,9 b'' | |||
|
81 | 85 | {% endif %} |
|
82 | 86 | {% endcache %} |
|
83 | 87 | </div> |
|
84 |
{% if |
|
|
88 | {% if is_opening and thread.tags.exists %} | |
|
85 | 89 | <div class="metadata"> |
|
86 |
{% if |
|
|
90 | {% if is_opening and need_open_link %} | |
|
87 | 91 | {{ thread.get_images_count }} {% trans 'images' %}. |
|
88 | 92 | {% endif %} |
|
89 | 93 | <span class="tags"> |
@@ -97,4 +101,5 b'' | |||
|
97 | 101 | </div> |
|
98 | 102 | {% endwith %} |
|
99 | 103 | {% endspaceless %} |
|
104 | {% endwith %} | |
|
100 | 105 | {% endcache %} |
General Comments 0
You need to be logged in to leave comments.
Login now