##// END OF EJS Templates
Clean up post template
neko259 -
r1672:bfd573f0 default
parent child Browse files
Show More
@@ -9,12 +9,11 b''
9 9 <span class="title">{{ post.title }}</span>
10 10 {% if perms.boards.change_post %}
11 11 <a href="{% url 'feed' %}?ip={{ post.poster_ip }}">*</a>
12 <span class="pub_time" style="border-bottom: solid 2px #{{ post.get_ip_color }};" title="{{ post.poster_ip }}">
13 {% else %}
14 <span class="pub_time">
12 15 {% endif %}
13 <span class="pub_time"
14 {% if perms.boards.change_post %}
15 style="border-bottom: solid 2px #{{ post.get_ip_color }};" title="{{ post.poster_ip }}"
16 {% endif %}
17 ><time datetime="{{ post.pub_time|date:'c' }}">{{ post.pub_time }}</time></span>
16 <time datetime="{{ post.pub_time|date:'c' }}">{{ post.pub_time }}</time></span>
18 17 {% if post.tripcode %}
19 18 /
20 19 {% with tripcode=post.get_tripcode %}
@@ -85,21 +84,17 b''
85 84 Post message (text)
86 85 {% endcomment %}
87 86 <div class="message">
88 {% autoescape off %}
89 87 {% if truncated %}
90 {{ post.get_text|truncatewords_html:50 }}
88 {{ post.get_text|truncatewords_html:50|safe }}
91 89 {% else %}
92 {{ post.get_text }}
90 {{ post.get_text|safe }}
93 91 {% endif %}
94 {% endautoescape %}
95 92 </div>
96 {% if post.is_referenced %}
97 {% if not mode_tree %}
93 {% if post.is_referenced and not mode_tree %}
98 94 <div class="refmap">
99 95 {% trans "Replies" %}: {{ post.refmap|safe }}
100 96 </div>
101 97 {% endif %}
102 {% endif %}
103 98 {% comment %}
104 99 Thread metadata: counters, tags etc
105 100 {% endcomment %}
General Comments 0
You need to be logged in to leave comments. Login now