##// END OF EJS Templates
Simplify post.html
neko259 -
r2129:23b6a15c default
parent child Browse files
Show More
@@ -20,11 +20,7 b''
20 20 {% endif %}
21 21 {% endif %}
22 22 <span class="title">{{ post.title|escape }}</span>
23 {% if perms.boards.change_post and post.has_ip %}
24 <span class="pub_time" style="border-bottom: solid 2px #{{ post.get_ip_color }};" title="{{ post.poster_ip }}">
25 {% else %}
26 <span class="pub_time">
27 {% endif %}
23 <span class="pub_time" {% if perms.boards.change_post and post.has_ip %}style="border-bottom: solid 2px #{{ post.get_ip_color }};" title="{{ post.poster_ip }}"{% endif %}>
28 24 <time datetime="{{ post.pub_time|date:'c' }}">{{ post.pub_time }}</time></span>
29 25 {% if post.tripcode %}
30 26 / {{ post.get_tripcode.get_view|safe }}
@@ -34,16 +30,12 b''
34 30 and this is an opening post (thread death time) or a post for popup
35 31 (we don't see OP here so we show the death time in the post itself).
36 32 {% endcomment %}
37 {% if is_opening and thread.is_archived %}
38 <time datetime="{{ thread.bump_time|date:'c' }}">{{ thread.bump_time }}</time>
39 {% endif %}
40 33 {% if is_opening %}
34 {% if thread.is_archived %}
35 <time datetime="{{ thread.bump_time|date:'c' }}">{{ thread.bump_time }}</time>
36 {% endif %}
41 37 {% if need_open_link %}
42 {% if thread.is_archived %}
43 <a class="link" href="{% url 'thread' post.id %}">{% trans "Open" %}</a>
44 {% else %}
45 <a class="link" href="{% url 'thread' post.id %}#form">{% trans "Reply" %}</a>
46 {% endif %}
38 <a class="link" href="{% url 'thread' post.id %}{% if not thread.is_archived %}#form{% endif %}">{% trans "Open" %}</a>
47 39 {% endif %}
48 40 {% else %}
49 41 {% if need_op_data %}
General Comments 0
You need to be logged in to leave comments. Login now