Show More
@@ -1,70 +1,72 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 | width="{{ post.image_pre_width }}" | |||
|
19 | height="{{ post.image_pre_height }}" | |||
18 | data-width="{{ post.image_width }}" |
|
20 | data-width="{{ post.image_width }}" | |
19 | data-height="{{ post.image_height }}"/> |
|
21 | data-height="{{ post.image_height }}"/> | |
20 | </a> |
|
22 | </a> | |
21 | </div> |
|
23 | </div> | |
22 | {% endif %} |
|
24 | {% endif %} | |
23 | <div class="message"> |
|
25 | <div class="message"> | |
24 | <div class="post-info"> |
|
26 | <div class="post-info"> | |
25 | <span class="title">{{ post.title }}</span> |
|
27 | <span class="title">{{ post.title }}</span> | |
26 | <a class="post_id" href="#{{ post.id }}"> |
|
28 | <a class="post_id" href="#{{ post.id }}"> | |
27 | ({{ post.id }})</a> |
|
29 | ({{ post.id }})</a> | |
28 | [{{ post.pub_time }}] |
|
30 | [{{ post.pub_time }}] | |
29 | [<a href="#" onclick="javascript:addQuickReply('{{ post.id }}') |
|
31 | [<a href="#" onclick="javascript:addQuickReply('{{ post.id }}') | |
30 | ; return false;">>></a>] |
|
32 | ; return false;">>></a>] | |
31 |
|
33 | |||
32 | {% if moderator %} |
|
34 | {% if moderator %} | |
33 | <span class="moderator_info"> |
|
35 | <span class="moderator_info"> | |
34 | [<a href="{% url 'delete' post_id=post.id %}" |
|
36 | [<a href="{% url 'delete' post_id=post.id %}" | |
35 | >{% trans 'Delete' %}</a>] |
|
37 | >{% trans 'Delete' %}</a>] | |
36 | ({{ post.poster_ip }}) |
|
38 | ({{ post.poster_ip }}) | |
37 | [<a href="{% url 'ban' post_id=post.id %}?next={{ request.path }}" |
|
39 | [<a href="{% url 'ban' post_id=post.id %}?next={{ request.path }}" | |
38 | >{% trans 'Ban IP' %}</a>] |
|
40 | >{% trans 'Ban IP' %}</a>] | |
39 | </span> |
|
41 | </span> | |
40 | {% endif %} |
|
42 | {% endif %} | |
41 | </div> |
|
43 | </div> | |
42 | {% autoescape off %} |
|
44 | {% autoescape off %} | |
43 | {% if truncated %} |
|
45 | {% if truncated %} | |
44 | {{ post.text.rendered|truncatewords_html:50 }} |
|
46 | {{ post.text.rendered|truncatewords_html:50 }} | |
45 | {% else %} |
|
47 | {% else %} | |
46 | {{ post.text.rendered }} |
|
48 | {{ post.text.rendered }} | |
47 | {% endif %} |
|
49 | {% endif %} | |
48 | {% endautoescape %} |
|
50 | {% endautoescape %} | |
49 | {% if post.is_referenced %} |
|
51 | {% if post.is_referenced %} | |
50 | <div class="refmap"> |
|
52 | <div class="refmap"> | |
51 | {% trans "Replies" %}: |
|
53 | {% trans "Replies" %}: | |
52 | {% for ref_post in post.get_sorted_referenced_posts %} |
|
54 | {% for ref_post in post.get_sorted_referenced_posts %} | |
53 | <a href="{% post_url ref_post.id %}">>>{{ ref_post.id }}</a |
|
55 | <a href="{% post_url ref_post.id %}">>>{{ ref_post.id }}</a | |
54 | >{% if not forloop.last %},{% endif %} |
|
56 | >{% if not forloop.last %},{% endif %} | |
55 | {% endfor %} |
|
57 | {% endfor %} | |
56 | </div> |
|
58 | </div> | |
57 | {% endif %} |
|
59 | {% endif %} | |
58 | </div> |
|
60 | </div> | |
59 | {% if post.is_opening and post.thread_new.tags.exists %} |
|
61 | {% if post.is_opening and post.thread_new.tags.exists %} | |
60 | <div class="metadata"> |
|
62 | <div class="metadata"> | |
61 | <span class="tags"> |
|
63 | <span class="tags"> | |
62 | {% for tag in post.thread_new.get_tags %} |
|
64 | {% for tag in post.thread_new.get_tags %} | |
63 | <a class="tag" href="{% url 'tag' tag.name %}"> |
|
65 | <a class="tag" href="{% url 'tag' tag.name %}"> | |
64 | #{{ tag.name }}</a>{% if not forloop.last %},{% endif %} |
|
66 | #{{ tag.name }}</a>{% if not forloop.last %},{% endif %} | |
65 | {% endfor %} |
|
67 | {% endfor %} | |
66 | </span> |
|
68 | </span> | |
67 | </div> |
|
69 | </div> | |
68 | {% endif %} |
|
70 | {% endif %} | |
69 | </div> |
|
71 | </div> | |
70 | {% endspaceless %} |
|
72 | {% endspaceless %} |
General Comments 0
You need to be logged in to leave comments.
Login now