##// END OF EJS Templates
Show reply count in OP along with the images count
neko259 -
r695:865d0253 1.8-dev
parent child Browse files
Show More
@@ -1,98 +1,99 b''
1 1 {% load i18n %}
2 2 {% load board %}
3 3 {% load cache %}
4 4
5 5 {% get_current_language as LANGUAGE_CODE %}
6 6
7 7 {% spaceless %}
8 8 {% cache 600 post post.id post.last_edit_time thread.archived bumpable truncated moderator LANGUAGE_CODE need_open_link %}
9 9 {% if thread.archived %}
10 10 <div class="post archive_post" id="{{ post.id }}">
11 11 {% elif bumpable %}
12 12 <div class="post" id="{{ post.id }}">
13 13 {% else %}
14 14 <div class="post dead_post" id="{{ post.id }}">
15 15 {% endif %}
16 16
17 17 <div class="post-info">
18 18 <a class="post_id" href="{% post_object_url post thread=thread %}"
19 19 {% if not truncated and not thread.archived %}
20 20 onclick="javascript:addQuickReply('{{ post.id }}'); return false;"
21 21 title="{% trans 'Quote' %}"
22 22 {% endif %}
23 23 >({{ post.id }}) </a>
24 24 <span class="title">{{ post.title }} </span>
25 25 <span class="pub_time">{{ post.pub_time }}</span>
26 26 {% if thread.archived %}
27 27 β€” {{ thread.bump_time }}
28 28 {% endif %}
29 29 {% if is_opening and need_open_link %}
30 30 {% if thread.archived %}
31 31 [<a class="link" href="{% url 'thread' post.id %}">{% trans "Open" %}</a>]
32 32 {% else %}
33 33 [<a class="link" href="{% url 'thread' post.id %}#form">{% trans "Reply" %}</a>]
34 34 {% endif %}
35 35 {% endif %}
36 36
37 37 {% if moderator %}
38 38 <span class="moderator_info">
39 39 [<a href="{% url 'post_admin' post_id=post.id %}"
40 40 >{% trans 'Edit' %}</a>]
41 41 [<a href="{% url 'delete' post_id=post.id %}"
42 42 >{% trans 'Delete' %}</a>]
43 43 ({{ post.poster_ip }})
44 44 [<a href="{% url 'ban' post_id=post.id %}?next={{ request.path }}"
45 45 >{% trans 'Ban IP' %}</a>]
46 46 </span>
47 47 {% endif %}
48 48 </div>
49 49 {% if post.images.exists %}
50 50 {% with post.images.all.0 as image %}
51 51 <div class="image">
52 52 <a
53 53 class="thumb"
54 54 href="{{ image.image.url }}"><img
55 55 src="{{ image.image.url_200x150 }}"
56 56 alt="{{ post.id }}"
57 57 width="{{ image.pre_width }}"
58 58 height="{{ image.pre_height }}"
59 59 data-width="{{ image.width }}"
60 60 data-height="{{ image.height }}"/>
61 61 </a>
62 62 </div>
63 63 {% endwith %}
64 64 {% endif %}
65 65 <div class="message">
66 66 {% autoescape off %}
67 67 {% if truncated %}
68 68 {{ post.text.rendered|truncatewords_html:50 }}
69 69 {% else %}
70 70 {{ post.text.rendered }}
71 71 {% endif %}
72 72 {% endautoescape %}
73 73 {% if post.is_referenced %}
74 74 <div class="refmap">
75 75 {% autoescape off %}
76 76 {% trans "Replies" %}: {{ post.refmap }}
77 77 {% endautoescape %}
78 78 </div>
79 79 {% endif %}
80 80 </div>
81 81 {% endcache %}
82 82 {% if is_opening %}
83 83 {% cache 600 post_thread thread.id thread.last_edit_time LANGUAGE_CODE need_open_link %}
84 84 <div class="metadata">
85 85 {% if is_opening and need_open_link %}
86 {{ thread.get_reply_count }} {% trans 'replies' %},
86 87 {{ thread.get_images_count }} {% trans 'images' %}.
87 88 {% endif %}
88 89 <span class="tags">
89 90 {% for tag in thread.get_tags %}
90 91 <a class="tag" href="{% url 'tag' tag.name %}">
91 92 #{{ tag.name }}</a>{% if not forloop.last %},{% endif %}
92 93 {% endfor %}
93 94 </span>
94 95 </div>
95 96 {% endcache %}
96 97 {% endif %}
97 98 </div>
98 99 {% endspaceless %}
General Comments 0
You need to be logged in to leave comments. Login now