Show More
@@ -1,95 +1,95 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 | {% trans " in " %}<a href="{{ op.get_absolute_url }}">>>{{ op.id }}</a> | |
|
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.all.0 as image %} |
|
55 | 55 | {% autoescape off %} |
|
56 | 56 | {{ image.get_view }} |
|
57 | 57 | {% endautoescape %} |
|
58 | 58 | {% endwith %} |
|
59 | 59 | {% endif %} |
|
60 | 60 | {% comment %} |
|
61 | 61 | Post message (text) |
|
62 | 62 | {% endcomment %} |
|
63 | 63 | <div class="message"> |
|
64 | 64 | {% autoescape off %} |
|
65 | 65 | {% if truncated %} |
|
66 | 66 | {{ post.get_text|truncatewords_html:50 }} |
|
67 | 67 | {% else %} |
|
68 | 68 | {{ post.get_text }} |
|
69 | 69 | {% endif %} |
|
70 | 70 | {% endautoescape %} |
|
71 | 71 | {% if post.is_referenced %} |
|
72 | 72 | <div class="refmap"> |
|
73 | 73 | {% autoescape off %} |
|
74 | 74 | {% trans "Replies" %}: {{ post.refmap }} |
|
75 | 75 | {% endautoescape %} |
|
76 | 76 | </div> |
|
77 | 77 | {% endif %} |
|
78 | 78 | </div> |
|
79 | 79 | {% comment %} |
|
80 | 80 | Thread metadata: counters, tags etc |
|
81 | 81 | {% endcomment %} |
|
82 | 82 | {% if is_opening %} |
|
83 | 83 | <div class="metadata"> |
|
84 | 84 | {% if is_opening and need_open_link %} |
|
85 | 85 | {{ thread.get_reply_count }} {% trans 'messages' %}, |
|
86 | 86 | {{ thread.get_images_count }} {% trans 'images' %}. |
|
87 | 87 | {% endif %} |
|
88 | 88 | <span class="tags"> |
|
89 | 89 | {% autoescape off %} |
|
90 | 90 | {{ thread.get_tag_url_list }} |
|
91 | 91 | {% endautoescape %} |
|
92 | 92 | </span> |
|
93 | 93 | </div> |
|
94 | 94 | {% endif %} |
|
95 | 95 | </div> |
General Comments 0
You need to be logged in to leave comments.
Login now