Show More
@@ -1,110 +1,110 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 }}"> |
|
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 | {% comment %} |
|
12 | 12 | Thread death time needs to be shown only if the thread is alredy archived |
|
13 | 13 | and this is an opening post (thread death time) or a post for popup |
|
14 | 14 | (we don't see OP here so we show the death time in the post itself). |
|
15 | 15 | {% endcomment %} |
|
16 | 16 | {% if thread.archived %} |
|
17 | 17 | {% if is_opening %} |
|
18 | 18 | β <time datetime="{{ thread.bump_time|date:'c' }}">{{ thread.bump_time }}</time> |
|
19 | 19 | {% endif %} |
|
20 | 20 | {% endif %} |
|
21 | 21 | {% if is_opening %} |
|
22 | 22 | {% if need_open_link %} |
|
23 | 23 | {% if thread.archived %} |
|
24 | 24 | <a class="link" href="{% url 'thread' post.id %}">{% trans "Open" %}</a> |
|
25 | 25 | {% else %} |
|
26 | 26 | <a class="link" href="{% url 'thread' post.id %}#form">{% trans "Reply" %}</a> |
|
27 | 27 | {% endif %} |
|
28 | 28 | {% endif %} |
|
29 | 29 | {% else %} |
|
30 | 30 | {% if need_op_data %} |
|
31 | 31 | {% with thread.get_opening_post as op %} |
|
32 | 32 | {% trans " in " %}<a href="{{ op.get_absolute_url }}">>>{{ op.id }}</a> <span class="title">{{ op.get_title|striptags|truncatewords:5 }}</span> |
|
33 | 33 | {% endwith %} |
|
34 | 34 | {% endif %} |
|
35 | 35 | {% endif %} |
|
36 | 36 | {% if reply_link and not thread.archived %} |
|
37 | 37 | <a href="#form" onclick="addQuickReply('{{ post.id }}'); return false;">{% trans 'Reply' %}</a> |
|
38 | 38 | {% endif %} |
|
39 | 39 | |
|
40 | 40 | {% if moderator %} |
|
41 | 41 | <span class="moderator_info"> |
|
42 | 42 | | <a href="{% url 'admin:boards_post_change' post.id %}">{% trans 'Edit' %}</a> |
|
43 | 43 | {% if is_opening %} |
|
44 | 44 | | <a href="{% url 'admin:boards_thread_change' thread.id %}">{% trans 'Edit thread' %}</a> |
|
45 | 45 | {% endif %} |
|
46 | 46 | </span> |
|
47 | 47 | {% endif %} |
|
48 | 48 | </div> |
|
49 | 49 | {% comment %} |
|
50 | 50 | Post images. Currently only 1 image can be posted and shown, but post model |
|
51 | 51 | supports multiple. |
|
52 | 52 | {% endcomment %} |
|
53 | 53 | {% if post.images.exists %} |
|
54 | 54 | {% with post.images.first as image %} |
|
55 | 55 | {% autoescape off %} |
|
56 | 56 | {{ image.get_view }} |
|
57 | 57 | {% endautoescape %} |
|
58 | 58 | {% endwith %} |
|
59 | 59 | {% endif %} |
|
60 | 60 | {% if post.attachments.exists %} |
|
61 | 61 | {% with post.attachments.first as file %} |
|
62 | 62 | {% autoescape off %} |
|
63 | 63 | {{ file.get_view }} |
|
64 | 64 | {% endautoescape %} |
|
65 | 65 | {% endwith %} |
|
66 | 66 | {% endif %} |
|
67 | 67 | {% comment %} |
|
68 | 68 | Post message (text) |
|
69 | 69 | {% endcomment %} |
|
70 | 70 | <div class="message"> |
|
71 | 71 | {% autoescape off %} |
|
72 | 72 | {% if truncated %} |
|
73 | 73 | {{ post.get_text|truncatewords_html:50 }} |
|
74 | 74 | {% else %} |
|
75 | 75 | {{ post.get_text }} |
|
76 | 76 | {% endif %} |
|
77 | 77 | {% endautoescape %} |
|
78 | </div> | |
|
78 | 79 |
|
|
79 | 80 |
|
|
80 | 81 |
|
|
81 | 82 |
|
|
82 | 83 |
|
|
83 | 84 |
|
|
84 | 85 |
|
|
85 | 86 |
|
|
86 | 87 |
|
|
87 | 88 |
|
|
88 | 89 |
|
|
89 | 90 |
|
|
90 | 91 |
|
|
91 | 92 |
|
|
92 | 93 |
|
|
93 | </div> | |
|
94 | 94 | {% comment %} |
|
95 | 95 | Thread metadata: counters, tags etc |
|
96 | 96 | {% endcomment %} |
|
97 | 97 | {% if is_opening %} |
|
98 | 98 | <div class="metadata"> |
|
99 | 99 | {% if is_opening and need_open_link %} |
|
100 | 100 | {{ thread.get_reply_count }} {% trans 'messages' %}, |
|
101 | 101 | {{ thread.get_images_count }} {% trans 'images' %}. |
|
102 | 102 | {% endif %} |
|
103 | 103 | <span class="tags"> |
|
104 | 104 | {% autoescape off %} |
|
105 | 105 | {{ thread.get_tag_url_list }} |
|
106 | 106 | {% endautoescape %} |
|
107 | 107 | </span> |
|
108 | 108 | </div> |
|
109 | 109 | {% endif %} |
|
110 | 110 | </div> |
General Comments 0
You need to be logged in to leave comments.
Login now