Show More
@@ -1,107 +1,107 b'' | |||
|
1 | 1 | {% load i18n %} |
|
2 | 2 | {% load board %} |
|
3 | 3 | |
|
4 | 4 | {% get_current_language as LANGUAGE_CODE %} |
|
5 | 5 | |
|
6 | 6 | <div class="{{ css_class }}" id="{{ post.id }}" data-uid="{{ post.uid }}" {% if tree_depth %}style="margin-left: {{ tree_depth }}em;"{% endif %}> |
|
7 | 7 | <div class="post-info"> |
|
8 | 8 | <a class="post_id" href="{{ post.get_absolute_url }}">#{{ post.get_absolute_id }}</a> |
|
9 | 9 | <span class="title">{{ post.title }}</span> |
|
10 | 10 | <span class="pub_time"><time datetime="{{ post.pub_time|date:'c' }}">{{ post.pub_time }}</time></span> |
|
11 | 11 | {% if post.tripcode %} |
|
12 | 12 | / |
|
13 | 13 | {% with tripcode=post.get_tripcode %} |
|
14 | 14 | <a href="{% url 'feed' %}?tripcode={{ tripcode.get_full_text }}" |
|
15 | 15 | class="tripcode" title="{{ tripcode.get_full_text }}" |
|
16 | 16 | style="border: solid 2px #{{ tripcode.get_color }}; border-left: solid 1ex #{{ tripcode.get_color }};">{{ tripcode.get_short_text }}</a> |
|
17 | 17 | {% endwith %} |
|
18 | 18 | {% endif %} |
|
19 | 19 | {% comment %} |
|
20 | 20 | Thread death time needs to be shown only if the thread is alredy archived |
|
21 | 21 | and this is an opening post (thread death time) or a post for popup |
|
22 | 22 | (we don't see OP here so we show the death time in the post itself). |
|
23 | 23 | {% endcomment %} |
|
24 | 24 | {% if thread.is_archived %} |
|
25 | 25 | {% if is_opening %} |
|
26 | 26 | β <time datetime="{{ thread.bump_time|date:'c' }}">{{ thread.bump_time }}</time> |
|
27 | 27 | {% endif %} |
|
28 | 28 | {% endif %} |
|
29 | 29 | {% if is_opening %} |
|
30 | 30 | {% if need_open_link %} |
|
31 | 31 | {% if thread.is_archived %} |
|
32 | 32 | <a class="link" href="{% url 'thread' post.id %}">{% trans "Open" %}</a> |
|
33 | 33 | {% else %} |
|
34 | 34 | <a class="link" href="{% url 'thread' post.id %}#form">{% trans "Reply" %}</a> |
|
35 | 35 | {% endif %} |
|
36 | 36 | {% endif %} |
|
37 | 37 | {% else %} |
|
38 | 38 | {% if need_op_data %} |
|
39 | 39 | {% with thread.get_opening_post as op %} |
|
40 | 40 | {% trans " in " %}{{ op.get_link_view|safe }} <span class="title">{{ op.get_title_or_text }}</span> |
|
41 | 41 | {% endwith %} |
|
42 | 42 | {% endif %} |
|
43 | 43 | {% endif %} |
|
44 | 44 | {% if reply_link and not thread.is_archived %} |
|
45 | 45 | <a href="#form" onclick="addQuickReply('{{ post.id }}'); return false;">{% trans 'Reply' %}</a> |
|
46 | 46 | {% endif %} |
|
47 | 47 | |
|
48 | 48 | {% if perms.boards.change_post or perms.boards.delete_post or perms.boards.change_thread or perms_boards.delete_thread %} |
|
49 | 49 | <span class="moderator_info"> |
|
50 | 50 | {% if perms.boards.change_post or perms.boards.delete_post %} |
|
51 | 51 | | <a href="{% url 'admin:boards_post_change' post.id %}">{% trans 'Edit' %}</a> |
|
52 | 52 | {% endif %} |
|
53 | 53 | {% if perms.boards.change_thread or perms_boards.delete_thread %} |
|
54 | 54 | {% if is_opening %} |
|
55 | 55 | | <a href="{% url 'admin:boards_thread_change' thread.id %}">{% trans 'Edit thread' %}</a> |
|
56 | 56 | {% endif %} |
|
57 | 57 | {% endif %} |
|
58 | {% if post.global_id %} | |
|
58 | {% if post.global_id_id %} | |
|
59 | 59 | | <a href="{% url 'post_sync_data' post.id %}">RAW</a> |
|
60 | 60 | {% endif %} |
|
61 | 61 | </span> |
|
62 | 62 | {% endif %} |
|
63 | 63 | </div> |
|
64 | 64 | {% comment %} |
|
65 | 65 | Post images. Currently only 1 image can be posted and shown, but post model |
|
66 | 66 | supports multiple. |
|
67 | 67 | {% endcomment %} |
|
68 | 68 | {% for image in post.images.all %} |
|
69 | 69 | {{ image.get_view|safe }} |
|
70 | 70 | {% endfor %} |
|
71 | 71 | {% for file in post.attachments.all %} |
|
72 | 72 | {{ file.get_view|safe }} |
|
73 | 73 | {% endfor %} |
|
74 | 74 | {% comment %} |
|
75 | 75 | Post message (text) |
|
76 | 76 | {% endcomment %} |
|
77 | 77 | <div class="message"> |
|
78 | 78 | {% autoescape off %} |
|
79 | 79 | {% if truncated %} |
|
80 | 80 | {{ post.get_text|truncatewords_html:50 }} |
|
81 | 81 | {% else %} |
|
82 | 82 | {{ post.get_text }} |
|
83 | 83 | {% endif %} |
|
84 | 84 | {% endautoescape %} |
|
85 | 85 | </div> |
|
86 | 86 | {% if post.is_referenced %} |
|
87 | 87 | {% if not mode_tree %} |
|
88 | 88 | <div class="refmap"> |
|
89 | 89 | {% trans "Replies" %}: {{ post.refmap|safe }} |
|
90 | 90 | </div> |
|
91 | 91 | {% endif %} |
|
92 | 92 | {% endif %} |
|
93 | 93 | {% comment %} |
|
94 | 94 | Thread metadata: counters, tags etc |
|
95 | 95 | {% endcomment %} |
|
96 | 96 | {% if is_opening %} |
|
97 | 97 | <div class="metadata"> |
|
98 | 98 | {% if is_opening and need_open_link %} |
|
99 | 99 | {% blocktrans count count=thread.get_reply_count %}{{ count }} message{% plural %}{{ count }} messages{% endblocktrans %}, |
|
100 | 100 | {% blocktrans count count=thread.get_images_count %}{{ count }} image{% plural %}{{ count }} images{% endblocktrans %}. |
|
101 | 101 | {% endif %} |
|
102 | 102 | <span class="tags"> |
|
103 | 103 | {{ thread.get_tag_url_list|safe }} |
|
104 | 104 | </span> |
|
105 | 105 | </div> |
|
106 | 106 | {% endif %} |
|
107 | 107 | </div> |
General Comments 0
You need to be logged in to leave comments.
Login now