##// END OF EJS Templates
Updated tags view in the post popups
neko259 -
r478:d822d035 default
parent child Browse files
Show More
@@ -1,70 +1,70 b''
1 {% load i18n %}
1 {% load i18n %}
2 {% load board %}
2 {% load board %}
3
3
4 {% spaceless %}
4 {% spaceless %}
5 {% if can_bump %}
5 {% if can_bump %}
6 <div class="post" id="{{ post.id }}">
6 <div class="post" id="{{ post.id }}">
7 {% else %}
7 {% else %}
8 <div class="post dead_post" id="{{ post.id }}">
8 <div class="post dead_post" id="{{ post.id }}">
9 {% endif %}
9 {% endif %}
10
10
11 {% if post.image %}
11 {% if post.image %}
12 <div class="image">
12 <div class="image">
13 <a
13 <a
14 class="thumb"
14 class="thumb"
15 href="{{ post.image.url }}"><img
15 href="{{ post.image.url }}"><img
16 src="{{ post.image.url_200x150 }}"
16 src="{{ post.image.url_200x150 }}"
17 alt="{{ post.id }}"
17 alt="{{ post.id }}"
18 data-width="{{ post.image_width }}"
18 data-width="{{ post.image_width }}"
19 data-height="{{ post.image_height }}"/>
19 data-height="{{ post.image_height }}"/>
20 </a>
20 </a>
21 </div>
21 </div>
22 {% endif %}
22 {% endif %}
23 <div class="message">
23 <div class="message">
24 <div class="post-info">
24 <div class="post-info">
25 <span class="title">{{ post.title }}</span>
25 <span class="title">{{ post.title }}</span>
26 <a class="post_id" href="#{{ post.id }}">
26 <a class="post_id" href="#{{ post.id }}">
27 ({{ post.id }})</a>
27 ({{ post.id }})</a>
28 [{{ post.pub_time }}]
28 [{{ post.pub_time }}]
29 [<a href="#" onclick="javascript:addQuickReply('{{ post.id }}')
29 [<a href="#" onclick="javascript:addQuickReply('{{ post.id }}')
30 ; return false;">&gt;&gt;</a>]
30 ; return false;">&gt;&gt;</a>]
31
31
32 {% if moderator %}
32 {% if moderator %}
33 <span class="moderator_info">
33 <span class="moderator_info">
34 [<a href="{% url 'delete' post_id=post.id %}"
34 [<a href="{% url 'delete' post_id=post.id %}"
35 >{% trans 'Delete' %}</a>]
35 >{% trans 'Delete' %}</a>]
36 ({{ post.poster_ip }})
36 ({{ post.poster_ip }})
37 [<a href="{% url 'ban' post_id=post.id %}?next={{ request.path }}"
37 [<a href="{% url 'ban' post_id=post.id %}?next={{ request.path }}"
38 >{% trans 'Ban IP' %}</a>]
38 >{% trans 'Ban IP' %}</a>]
39 </span>
39 </span>
40 {% endif %}
40 {% endif %}
41 </div>
41 </div>
42 {% autoescape off %}
42 {% autoescape off %}
43 {% if truncated %}
43 {% if truncated %}
44 {{ post.text.rendered|truncatewords_html:50 }}
44 {{ post.text.rendered|truncatewords_html:50 }}
45 {% else %}
45 {% else %}
46 {{ post.text.rendered }}
46 {{ post.text.rendered }}
47 {% endif %}
47 {% endif %}
48 {% endautoescape %}
48 {% endautoescape %}
49 {% if post.is_referenced %}
49 {% if post.is_referenced %}
50 <div class="refmap">
50 <div class="refmap">
51 {% trans "Replies" %}:
51 {% trans "Replies" %}:
52 {% for ref_post in post.get_sorted_referenced_posts %}
52 {% for ref_post in post.get_sorted_referenced_posts %}
53 <a href="{% post_url ref_post.id %}">&gt;&gt;{{ ref_post.id }}</a
53 <a href="{% post_url ref_post.id %}">&gt;&gt;{{ ref_post.id }}</a
54 >{% if not forloop.last %},{% endif %}
54 >{% if not forloop.last %},{% endif %}
55 {% endfor %}
55 {% endfor %}
56 </div>
56 </div>
57 {% endif %}
57 {% endif %}
58 </div>
58 </div>
59 {% if post.thread_new.tags.exists %}
59 {% if post.thread_new.tags.exists %}
60 <div class="metadata">
60 <div class="metadata">
61 <span class="tags">{% trans 'Tags' %}:
61 <span class="tags">
62 {% for tag in post.thread_new.get_tags %}
62 {% for tag in post.thread_new.get_tags %}
63 <a class="tag" href="{% url 'tag' tag.name %}">
63 <a class="tag" href="{% url 'tag' tag.name %}">
64 {{ tag.name }}</a>
64 #{{ tag.name }}</a>
65 {% endfor %}
65 {% endfor %}
66 </span>
66 </span>
67 </div>
67 </div>
68 {% endif %}
68 {% endif %}
69 </div>
69 </div>
70 {% endspaceless %}
70 {% endspaceless %}
General Comments 0
You need to be logged in to leave comments. Login now