Show More
@@ -1,88 +1,88 b'' | |||
|
1 | 1 | {% load i18n %} |
|
2 | 2 | {% load board %} |
|
3 | 3 | {% load cache %} |
|
4 | 4 | |
|
5 | 5 | {% get_current_language as LANGUAGE_CODE %} |
|
6 | 6 | |
|
7 | 7 | <div class="{{ css_class }}" id="{{ post.id }}"> |
|
8 | 8 | <div class="post-info"> |
|
9 | 9 | <a class="post_id" href="{{ post.get_url }}">({{ post.get_absolute_id }})</a> |
|
10 | 10 | <span class="title">{{ post.title }}</span> |
|
11 |
<span class="pub_time"><time datetime="{{ post.pub_time|date:'c' }}">{{ post.pub_time |
|
|
11 | <span class="pub_time"><time datetime="{{ post.pub_time|date:'c' }}">{{ post.pub_time }}</time></span> | |
|
12 | 12 | {% comment %} |
|
13 | 13 | Thread death time needs to be shown only if the thread is alredy archived |
|
14 | 14 | and this is an opening post (thread death time) or a post for popup |
|
15 | 15 | (we don't see OP here so we show the death time in the post itself). |
|
16 | 16 | {% endcomment %} |
|
17 | 17 | {% if thread.archived %} |
|
18 | 18 | {% if is_opening %} |
|
19 |
— <time datetime="{{ thread.bump_time|date:'c' }}">{{ thread.bump_time |
|
|
19 | — <time datetime="{{ thread.bump_time|date:'c' }}">{{ thread.bump_time }}</time> | |
|
20 | 20 | {% endif %} |
|
21 | 21 | {% endif %} |
|
22 | 22 | {% if is_opening and 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 | {% if reply_link and not thread.archived %} |
|
30 | 30 | <a href="#form" onclick="addQuickReply('{{ post.id }}'); return false;">{% trans 'Reply' %}</a> |
|
31 | 31 | {% endif %} |
|
32 | 32 | |
|
33 | 33 | {% if moderator %} |
|
34 | 34 | <span class="moderator_info"> |
|
35 | 35 | <a href="{% url 'admin:boards_post_change' post.id %}">{% trans 'Edit' %}</a> |
|
36 | 36 | {% if is_opening %} |
|
37 | 37 | | <a href="{% url 'admin:boards_thread_change' thread.id %}">{% trans 'Edit thread' %}</a> |
|
38 | 38 | {% endif %} |
|
39 | 39 | </span> |
|
40 | 40 | {% endif %} |
|
41 | 41 | </div> |
|
42 | 42 | {% comment %} |
|
43 | 43 | Post images. Currently only 1 image can be posted and shown, but post model |
|
44 | 44 | supports multiple. |
|
45 | 45 | {% endcomment %} |
|
46 | 46 | {% if post.images.exists %} |
|
47 | 47 | {% with post.images.all.0 as image %} |
|
48 | 48 | {% autoescape off %} |
|
49 | 49 | {{ image.get_view }} |
|
50 | 50 | {% endautoescape %} |
|
51 | 51 | {% endwith %} |
|
52 | 52 | {% endif %} |
|
53 | 53 | {% comment %} |
|
54 | 54 | Post message (text) |
|
55 | 55 | {% endcomment %} |
|
56 | 56 | <div class="message"> |
|
57 | 57 | {% autoescape off %} |
|
58 | 58 | {% if truncated %} |
|
59 | 59 | {{ post.get_text|truncatewords_html:50 }} |
|
60 | 60 | {% else %} |
|
61 | 61 | {{ post.get_text }} |
|
62 | 62 | {% endif %} |
|
63 | 63 | {% endautoescape %} |
|
64 | 64 | {% if post.is_referenced %} |
|
65 | 65 | <div class="refmap"> |
|
66 | 66 | {% autoescape off %} |
|
67 | 67 | {% trans "Replies" %}: {{ post.refmap }} |
|
68 | 68 | {% endautoescape %} |
|
69 | 69 | </div> |
|
70 | 70 | {% endif %} |
|
71 | 71 | </div> |
|
72 | 72 | {% comment %} |
|
73 | 73 | Thread metadata: counters, tags etc |
|
74 | 74 | {% endcomment %} |
|
75 | 75 | {% if is_opening %} |
|
76 | 76 | <div class="metadata"> |
|
77 | 77 | {% if is_opening and need_open_link %} |
|
78 | 78 | {{ thread.get_reply_count }} {% trans 'messages' %}, |
|
79 | 79 | {{ thread.get_images_count }} {% trans 'images' %}. |
|
80 | 80 | {% endif %} |
|
81 | 81 | <span class="tags"> |
|
82 | 82 | {% autoescape off %} |
|
83 | 83 | {{ thread.get_tag_url_list }} |
|
84 | 84 | {% endautoescape %} |
|
85 | 85 | </span> |
|
86 | 86 | </div> |
|
87 | 87 | {% endif %} |
|
88 | 88 | </div> |
@@ -1,38 +1,38 b'' | |||
|
1 | 1 | {% extends "boards/base.html" %} |
|
2 | 2 | |
|
3 | 3 | {% load i18n %} |
|
4 | 4 | {% load cache %} |
|
5 | 5 | {% load static from staticfiles %} |
|
6 | 6 | {% load board %} |
|
7 | 7 | {% load tz %} |
|
8 | 8 | |
|
9 | 9 | {% block head %} |
|
10 | 10 | <title>{{ opening_post.get_title|striptags|truncatewords:10 }} |
|
11 | 11 | - {{ site_name }}</title> |
|
12 | 12 | {% endblock %} |
|
13 | 13 | |
|
14 | 14 | {% block metapanel %} |
|
15 | 15 | |
|
16 | 16 | {% get_current_language as LANGUAGE_CODE %} |
|
17 | 17 | {% get_current_timezone as TIME_ZONE %} |
|
18 | 18 | |
|
19 | 19 | <span class="metapanel" |
|
20 | 20 | data-last-update="{{ last_update }}" |
|
21 | 21 | data-ws-token-time="{{ ws_token_time }}" |
|
22 | 22 | data-ws-token="{{ ws_token }}" |
|
23 | 23 | data-ws-project="{{ ws_project }}" |
|
24 | 24 | data-ws-host="{{ ws_host }}" |
|
25 | 25 | data-ws-port="{{ ws_port }}"> |
|
26 | 26 | |
|
27 | 27 | {% block thread_meta_panel %} |
|
28 | 28 | {% endblock %} |
|
29 | 29 | |
|
30 | 30 | {% cache 600 thread_meta thread.last_edit_time moderator LANGUAGE_CODE TIME_ZONE %} |
|
31 | 31 | <span id="reply-count">{{ thread.get_reply_count }}</span>{% if thread.has_post_limit %}/{{ thread.max_posts }}{% endif %} {% trans 'messages' %}, |
|
32 | 32 | <span id="image-count">{{ thread.get_images_count }}</span> {% trans 'images' %}. |
|
33 |
{% trans 'Last update: ' %}<span id="last-update"><time datetime="{{ thread.last_edit_time|date:'c' }}">{{ thread.last_edit_time |
|
|
33 | {% trans 'Last update: ' %}<span id="last-update"><time datetime="{{ thread.last_edit_time|date:'c' }}">{{ thread.last_edit_time }}</time></span> | |
|
34 | 34 | [<a href="rss/">RSS</a>] |
|
35 | 35 | {% endcache %} |
|
36 | 36 | </span> |
|
37 | 37 | |
|
38 | 38 | {% endblock %} |
General Comments 0
You need to be logged in to leave comments.
Login now