##// END OF EJS Templates
Clean up post template
neko259 -
r1672:bfd573f0 default
parent child Browse files
Show More
@@ -9,18 +9,17 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 %}
21 <a href="{% url 'feed' %}?tripcode={{ tripcode.get_full_text }}"
20 <a href="{% url 'feed' %}?tripcode={{ tripcode.get_full_text }}"
22 class="tripcode" title="{{ tripcode.get_full_text }}"
21 class="tripcode" title="{{ tripcode.get_full_text }}"
23 style="border: solid 2px #{{ tripcode.get_color }}; border-left: solid 1ex #{{ tripcode.get_color }};">{{ tripcode.get_short_text }}</a>
22 style="border: solid 2px #{{ tripcode.get_color }}; border-left: solid 1ex #{{ tripcode.get_color }};">{{ tripcode.get_short_text }}</a>
24 {% endwith %}
23 {% endwith %}
25 {% endif %}
24 {% endif %}
26 {% comment %}
25 {% comment %}
@@ -85,20 +84,16 b''
85 Post message (text)
84 Post message (text)
86 {% endcomment %}
85 {% endcomment %}
87 <div class="message">
86 <div class="message">
88 {% autoescape off %}
87 {% if truncated %}
89 {% if truncated %}
88 {{ post.get_text|truncatewords_html:50|safe }}
90 {{ post.get_text|truncatewords_html:50 }}
89 {% else %}
91 {% else %}
90 {{ post.get_text|safe }}
92 {{ post.get_text }}
91 {% endif %}
93 {% 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 %}
94 <div class="refmap">
98 <div class="refmap">
95 {% trans "Replies" %}: {{ post.refmap|safe }}
99 {% trans "Replies" %}: {{ post.refmap|safe }}
96 </div>
100 </div>
101 {% endif %}
102 {% endif %}
97 {% endif %}
103 {% comment %}
98 {% comment %}
104 Thread metadata: counters, tags etc
99 Thread metadata: counters, tags etc
General Comments 0
You need to be logged in to leave comments. Login now