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