Show More
@@ -1,96 +1,88 b'' | |||||
1 | {% load i18n %} |
|
1 | {% load i18n %} | |
2 | {% load board %} |
|
2 | {% load board %} | |
3 |
|
3 | |||
4 | {% get_current_language as LANGUAGE_CODE %} |
|
4 | {% get_current_language as LANGUAGE_CODE %} | |
5 |
|
5 | |||
6 | {% autoescape off %} |
|
6 | {% autoescape off %} | |
7 | <div class="{{ css_class }}" id="{{ post.id }}" |
|
7 | <div class="{{ css_class }}" id="{{ post.id }}" | |
8 | data-uid="{{ post.uid }}" |
|
8 | data-uid="{{ post.uid }}" | |
9 | data-has-global-id="{{ post.has_global_id }}" |
|
9 | data-has-global-id="{{ post.has_global_id }}" | |
10 | data-thread-id="{{ thread.id }}" |
|
10 | data-thread-id="{{ thread.id }}" | |
11 | data-opening="{{ is_opening }}" |
|
11 | data-opening="{{ is_opening }}" | |
12 | {% if tree_depth %}style="margin-left: {{ tree_depth }}em;"{% endif %}> |
|
12 | {% if tree_depth %}style="margin-left: {{ tree_depth }}em;"{% endif %}> | |
13 | <div class="post-info"> |
|
13 | <div class="post-info"> | |
14 | <a class="post_id" href="{{ post.get_absolute_url }}">#{{ post.id }}</a> |
|
14 | <a class="post_id" href="{{ post.get_absolute_url }}">#{{ post.id }}</a> | |
15 | {% if is_opening %} |
|
15 | {% if is_opening %} | |
16 | {% if thread.is_stickerpack %} |
|
16 | {% if thread.is_stickerpack %} | |
17 | <span title="{% trans "Sticker Pack" %}">📷</span> |
|
17 | <span title="{% trans "Sticker Pack" %}">📷</span> | |
18 | {% elif thread.is_monochrome %} |
|
18 | {% elif thread.is_monochrome %} | |
19 | <span title="{% trans "Monochrome" %}">☯</span> |
|
19 | <span title="{% trans "Monochrome" %}">☯</span> | |
20 | {% endif %} |
|
20 | {% endif %} | |
21 | {% endif %} |
|
21 | {% endif %} | |
22 | <span class="title">{{ post.title|escape }}</span> |
|
22 | <span class="title">{{ post.title|escape }}</span> | |
23 | {% if perms.boards.change_post and post.has_ip %} |
|
23 | <span class="pub_time" {% if perms.boards.change_post and post.has_ip %}style="border-bottom: solid 2px #{{ post.get_ip_color }};" title="{{ post.poster_ip }}"{% endif %}> | |
24 | <span class="pub_time" style="border-bottom: solid 2px #{{ post.get_ip_color }};" title="{{ post.poster_ip }}"> |
|
|||
25 | {% else %} |
|
|||
26 | <span class="pub_time"> |
|
|||
27 | {% endif %} |
|
|||
28 | <time datetime="{{ post.pub_time|date:'c' }}">{{ post.pub_time }}</time></span> |
|
24 | <time datetime="{{ post.pub_time|date:'c' }}">{{ post.pub_time }}</time></span> | |
29 | {% if post.tripcode %} |
|
25 | {% if post.tripcode %} | |
30 | / {{ post.get_tripcode.get_view|safe }} |
|
26 | / {{ post.get_tripcode.get_view|safe }} | |
31 | {% endif %} |
|
27 | {% endif %} | |
32 | {% comment %} |
|
28 | {% comment %} | |
33 | Thread death time needs to be shown only if the thread is alredy archived |
|
29 | Thread death time needs to be shown only if the thread is alredy archived | |
34 | and this is an opening post (thread death time) or a post for popup |
|
30 | and this is an opening post (thread death time) or a post for popup | |
35 | (we don't see OP here so we show the death time in the post itself). |
|
31 | (we don't see OP here so we show the death time in the post itself). | |
36 | {% endcomment %} |
|
32 | {% endcomment %} | |
37 | {% if is_opening and thread.is_archived %} |
|
|||
38 | — <time datetime="{{ thread.bump_time|date:'c' }}">{{ thread.bump_time }}</time> |
|
|||
39 | {% endif %} |
|
|||
40 | {% if is_opening %} |
|
33 | {% if is_opening %} | |
|
34 | {% if thread.is_archived %} | |||
|
35 | — <time datetime="{{ thread.bump_time|date:'c' }}">{{ thread.bump_time }}</time> | |||
|
36 | {% endif %} | |||
41 | {% if need_open_link %} |
|
37 | {% if need_open_link %} | |
42 | {% if thread.is_archived %} |
|
38 | <a class="link" href="{% url 'thread' post.id %}{% if not thread.is_archived %}#form{% endif %}">{% trans "Open" %}</a> | |
43 | <a class="link" href="{% url 'thread' post.id %}">{% trans "Open" %}</a> |
|
|||
44 | {% else %} |
|
|||
45 | <a class="link" href="{% url 'thread' post.id %}#form">{% trans "Reply" %}</a> |
|
|||
46 | {% endif %} |
|
|||
47 | {% endif %} |
|
39 | {% endif %} | |
48 | {% else %} |
|
40 | {% else %} | |
49 | {% if need_op_data %} |
|
41 | {% if need_op_data %} | |
50 | {% with thread.get_opening_post as op %} |
|
42 | {% with thread.get_opening_post as op %} | |
51 | {% trans " in " %}{{ op.get_link_view|safe }} <span class="title">{{ op.get_title_or_text }}</span> |
|
43 | {% trans " in " %}{{ op.get_link_view|safe }} <span class="title">{{ op.get_title_or_text }}</span> | |
52 | {% endwith %} |
|
44 | {% endwith %} | |
53 | {% endif %} |
|
45 | {% endif %} | |
54 | {% endif %} |
|
46 | {% endif %} | |
55 | {% if reply_link and not thread.is_archived %} |
|
47 | {% if reply_link and not thread.is_archived %} | |
56 | <a href="#form" onclick="addQuickReply('{{ post.id }}'); return false;">{% trans 'Reply' %}</a> |
|
48 | <a href="#form" onclick="addQuickReply('{{ post.id }}'); return false;">{% trans 'Reply' %}</a> | |
57 | {% endif %} |
|
49 | {% endif %} | |
58 |
|
50 | |||
59 | <a class="post-menu" href="#">⋮</a> |
|
51 | <a class="post-menu" href="#">⋮</a> | |
60 | </div> |
|
52 | </div> | |
61 | {% for file in post.attachments.all %} |
|
53 | {% for file in post.attachments.all %} | |
62 | {{ file.get_view|safe }} |
|
54 | {{ file.get_view|safe }} | |
63 | {% endfor %} |
|
55 | {% endfor %} | |
64 | {% comment %} |
|
56 | {% comment %} | |
65 | Post message (text) |
|
57 | Post message (text) | |
66 | {% endcomment %} |
|
58 | {% endcomment %} | |
67 | <div class="message"> |
|
59 | <div class="message"> | |
68 | {% if truncated %} |
|
60 | {% if truncated %} | |
69 | {{ post.get_text|truncatewords_html:50|truncatenewlines_html:3|safe }} |
|
61 | {{ post.get_text|truncatewords_html:50|truncatenewlines_html:3|safe }} | |
70 | {% else %} |
|
62 | {% else %} | |
71 | {{ post.get_text|safe }} |
|
63 | {{ post.get_text|safe }} | |
72 | {% endif %} |
|
64 | {% endif %} | |
73 | </div> |
|
65 | </div> | |
74 | {% if post.is_referenced and not mode_tree %} |
|
66 | {% if post.is_referenced and not mode_tree %} | |
75 | <div class="refmap"> |
|
67 | <div class="refmap"> | |
76 | {% trans "Replies" %}: {{ post.refmap|safe }} |
|
68 | {% trans "Replies" %}: {{ post.refmap|safe }} | |
77 | </div> |
|
69 | </div> | |
78 | {% endif %} |
|
70 | {% endif %} | |
79 | {% comment %} |
|
71 | {% comment %} | |
80 | Thread metadata: counters, tags etc |
|
72 | Thread metadata: counters, tags etc | |
81 | {% endcomment %} |
|
73 | {% endcomment %} | |
82 | {% if is_opening %} |
|
74 | {% if is_opening %} | |
83 | <div class="metadata"> |
|
75 | <div class="metadata"> | |
84 | {% if need_open_link %} |
|
76 | {% if need_open_link %} | |
85 | ♥ {{ thread.get_reply_count }} |
|
77 | ♥ {{ thread.get_reply_count }} | |
86 | ❄ {{ thread.get_attachment_count }} |
|
78 | ❄ {{ thread.get_attachment_count }} | |
87 | <a href="{% url 'thread_gallery' post.id %}">G</a> |
|
79 | <a href="{% url 'thread_gallery' post.id %}">G</a> | |
88 | <a href="{% url 'thread_tree' post.id %}">T</a> |
|
80 | <a href="{% url 'thread_tree' post.id %}">T</a> | |
89 | {% endif %} |
|
81 | {% endif %} | |
90 | <span class="tags"> |
|
82 | <span class="tags"> | |
91 | {{ thread.get_tag_url_list|safe }} |
|
83 | {{ thread.get_tag_url_list|safe }} | |
92 | </span> |
|
84 | </span> | |
93 | </div> |
|
85 | </div> | |
94 | {% endif %} |
|
86 | {% endif %} | |
95 | </div> |
|
87 | </div> | |
96 | {% endautoescape %} |
|
88 | {% endautoescape %} |
General Comments 0
You need to be logged in to leave comments.
Login now