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