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