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