Show More
@@ -1,136 +1,136 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 | |
|
8 | 8 | {% block head %} |
|
9 | 9 | <title>Neboard - {{ thread.get_opening_post.get_title }}</title> |
|
10 | 10 | {% endblock %} |
|
11 | 11 | |
|
12 | 12 | {% block content %} |
|
13 | 13 | {% spaceless %} |
|
14 | 14 | {% get_current_language as LANGUAGE_CODE %} |
|
15 | 15 | |
|
16 | <script src="{% static 'js/thread_update.js' %}"></script> | |
|
17 | <script src="{% static 'js/thread.js' %}"></script> | |
|
18 | ||
|
19 | 16 | {% cache 600 thread_view thread.id thread.last_edit_time moderator LANGUAGE_CODE %} |
|
20 | 17 | |
|
21 | 18 | <div class="image-mode-tab"> |
|
22 | 19 | <a class="current_mode" href="{% url 'thread' thread.get_opening_post.id %}">{% trans 'Normal mode' %}</a>, |
|
23 | 20 | <a href="{% url 'thread_mode' thread.get_opening_post.id 'gallery' %}">{% trans 'Gallery mode' %}</a> |
|
24 | 21 | </div> |
|
25 | 22 | |
|
26 | 23 | {% if bumpable %} |
|
27 | 24 | <div class="bar-bg"> |
|
28 | 25 | <div class="bar-value" style="width:{{ bumplimit_progress }}%" id="bumplimit_progress"> |
|
29 | 26 | </div> |
|
30 | 27 | <div class="bar-text"> |
|
31 | 28 | <span id="left_to_limit">{{ posts_left }}</span> {% trans 'posts to bumplimit' %} |
|
32 | 29 | </div> |
|
33 | 30 | </div> |
|
34 | 31 | {% endif %} |
|
35 | 32 | <div class="thread"> |
|
36 | 33 | {% for post in posts %} |
|
37 | 34 | {% if bumpable %} |
|
38 | 35 | <div class="post" id="{{ post.id }}"> |
|
39 | 36 | {% else %} |
|
40 | 37 | <div class="post dead_post" id="{{ post.id }}"> |
|
41 | 38 | {% endif %} |
|
42 | 39 | {% if post.image %} |
|
43 | 40 | <div class="image"> |
|
44 | 41 | <a |
|
45 | 42 | class="thumb" |
|
46 | 43 | href="{{ post.image.url }}"><img |
|
47 | 44 | src="{{ post.image.url_200x150 }}" |
|
48 | 45 | alt="{{ post.id }}" |
|
49 | 46 | width="{{ post.image_pre_width }}" |
|
50 | 47 | height="{{ post.image_pre_height }}" |
|
51 | 48 | data-width="{{ post.image_width }}" |
|
52 | 49 | data-height="{{ post.image_height }}"/> |
|
53 | 50 | </a> |
|
54 | 51 | </div> |
|
55 | 52 | {% endif %} |
|
56 | 53 | <div class="message"> |
|
57 | 54 | <div class="post-info"> |
|
58 | 55 | <span class="title">{{ post.title }}</span> |
|
59 | 56 | <a class="post_id" href="#{{ post.id }}"> |
|
60 | 57 | ({{ post.id }})</a> |
|
61 | 58 | [{{ post.pub_time }}] |
|
62 | 59 | [<a href="#" onclick="javascript:addQuickReply('{{ post.id }}') |
|
63 | 60 | ; return false;">>></a>] |
|
64 | 61 | |
|
65 | 62 | {% if moderator %} |
|
66 | 63 | <span class="moderator_info"> |
|
67 | 64 | [<a href="{% url 'delete' post_id=post.id %}" |
|
68 | 65 | >{% trans 'Delete' %}</a>] |
|
69 | 66 | ({{ post.poster_ip }}) |
|
70 | 67 | [<a href="{% url 'ban' post_id=post.id %}?next={{ request.path }}" |
|
71 | 68 | >{% trans 'Ban IP' %}</a>] |
|
72 | 69 | </span> |
|
73 | 70 | {% endif %} |
|
74 | 71 | </div> |
|
75 | 72 | {% autoescape off %} |
|
76 | 73 | {{ post.text.rendered }} |
|
77 | 74 | {% endautoescape %} |
|
78 | 75 | {% if post.is_referenced %} |
|
79 | 76 | <div class="refmap"> |
|
80 | 77 | {% trans "Replies" %}: |
|
81 | 78 | {% for ref_post in post.get_sorted_referenced_posts %} |
|
82 | 79 | <a href="{% post_url ref_post.id %}">>>{{ ref_post.id }}</a |
|
83 | 80 | >{% if not forloop.last %},{% endif %} |
|
84 | 81 | {% endfor %} |
|
85 | 82 | </div> |
|
86 | 83 | {% endif %} |
|
87 | 84 | </div> |
|
88 | 85 | {% if forloop.first %} |
|
89 | 86 | <div class="metadata"> |
|
90 | 87 | <span class="tags"> |
|
91 | 88 | {% for tag in thread.get_tags %} |
|
92 | 89 | <a class="tag" href="{% url 'tag' tag.name %}"> |
|
93 | 90 | #{{ tag.name }}</a |
|
94 | 91 | >{% if not forloop.last %},{% endif %} |
|
95 | 92 | {% endfor %} |
|
96 | 93 | </span> |
|
97 | 94 | </div> |
|
98 | 95 | {% endif %} |
|
99 | 96 | </div> |
|
100 | 97 | {% endfor %} |
|
101 | 98 | </div> |
|
102 | 99 | {% endcache %} |
|
103 | 100 | |
|
104 | 101 | <div class="post-form-w"> |
|
105 | 102 | <script src="{% static 'js/panel.js' %}"></script> |
|
106 | 103 | <div class="form-title">{% trans "Reply to thread" %} #{{ thread.get_opening_post.id }}</div> |
|
107 | 104 | <div class="post-form"> |
|
108 | 105 | <form id="form" enctype="multipart/form-data" method="post" |
|
109 | 106 | >{% csrf_token %} |
|
110 | 107 | {{ form.as_div }} |
|
111 | 108 | <div class="form-submit"> |
|
112 | 109 | <input type="submit" value="{% trans "Post" %}"/> |
|
113 | 110 | </div> |
|
114 | 111 | </form> |
|
115 | 112 | <div><a href="{% url "staticpage" name="help" %}"> |
|
116 | 113 | {% trans 'Text syntax' %}</a></div> |
|
117 | 114 | </div> |
|
118 | 115 | </div> |
|
119 | 116 | |
|
117 | <script src="{% static 'js/thread_update.js' %}"></script> | |
|
118 | <script src="{% static 'js/thread.js' %}"></script> | |
|
119 | ||
|
120 | 120 | {% endspaceless %} |
|
121 | 121 | {% endblock %} |
|
122 | 122 | |
|
123 | 123 | {% block metapanel %} |
|
124 | 124 | |
|
125 | 125 | {% get_current_language as LANGUAGE_CODE %} |
|
126 | 126 | |
|
127 | 127 | <span class="metapanel" data-last-update="{{ last_update }}"> |
|
128 | 128 | {% cache 600 thread_meta thread.last_edit_time moderator LANGUAGE_CODE %} |
|
129 | 129 | <span id="reply-count">{{ thread.get_reply_count }}</span> {% trans 'replies' %}, |
|
130 | 130 | <span id="image-count">{{ thread.get_images_count }}</span> {% trans 'images' %}. |
|
131 | 131 | {% trans 'Last update: ' %}{{ thread.last_edit_time }} |
|
132 | 132 | [<a href="rss/">RSS</a>] |
|
133 | 133 | {% endcache %} |
|
134 | 134 | </span> |
|
135 | 135 | |
|
136 | 136 | {% endblock %} |
General Comments 0
You need to be logged in to leave comments.
Login now