Show More
@@ -1,222 +1,222 b'' | |||||
1 | {% extends "boards/base.html" %} |
|
1 | {% extends "boards/base.html" %} | |
2 |
|
2 | |||
3 | {% load i18n %} |
|
3 | {% load i18n %} | |
4 | {% load markup %} |
|
4 | {% load markup %} | |
5 | {% load cache %} |
|
5 | {% load cache %} | |
6 |
|
6 | |||
7 | {% block head %} |
|
7 | {% block head %} | |
8 | {% if tag %} |
|
8 | {% if tag %} | |
9 | <title>Neboard - {{ tag.name }}</title> |
|
9 | <title>Neboard - {{ tag.name }}</title> | |
10 | {% else %} |
|
10 | {% else %} | |
11 | <title>Neboard</title> |
|
11 | <title>Neboard</title> | |
12 | {% endif %} |
|
12 | {% endif %} | |
13 | {% endblock %} |
|
13 | {% endblock %} | |
14 |
|
14 | |||
15 | {% block content %} |
|
15 | {% block content %} | |
16 |
|
16 | |||
17 | {% if tag %} |
|
17 | {% if tag %} | |
18 | <div class="tag_info"> |
|
18 | <div class="tag_info"> | |
19 |
<h2> |
|
19 | <h2>#{{ tag.name }} | |
20 | {% if tag in user.fav_tags.all %} |
|
20 | {% if tag in user.fav_tags.all %} | |
21 | <a href="{% url 'tag_unsubscribe' tag.name %}?next={{ request.path }}" |
|
21 | <a href="{% url 'tag_unsubscribe' tag.name %}?next={{ request.path }}" | |
22 | class="fav">β </a> |
|
22 | class="fav">β </a> | |
23 | {% else %} |
|
23 | {% else %} | |
24 | <a href="{% url 'tag_subscribe' tag.name %}?next={{ request.path }}" |
|
24 | <a href="{% url 'tag_subscribe' tag.name %}?next={{ request.path }}" | |
25 | class="not_fav">β </a> |
|
25 | class="not_fav">β </a> | |
26 | {% endif %} |
|
26 | {% endif %} | |
27 | </h2> |
|
27 | </h2> | |
28 | </div> |
|
28 | </div> | |
29 | {% endif %} |
|
29 | {% endif %} | |
30 |
|
30 | |||
31 | {% if threads %} |
|
31 | {% if threads %} | |
32 | {% for thread in threads %} |
|
32 | {% for thread in threads %} | |
33 | <div class="thread"> |
|
33 | <div class="thread"> | |
34 | {% if thread.bumpable %} |
|
34 | {% if thread.bumpable %} | |
35 | <div class="post" id="{{ thread.thread.id }}"> |
|
35 | <div class="post" id="{{ thread.thread.id }}"> | |
36 | {% else %} |
|
36 | {% else %} | |
37 | <div class="post dead_post" id="{{ thread.thread.id }}"> |
|
37 | <div class="post dead_post" id="{{ thread.thread.id }}"> | |
38 | {% endif %} |
|
38 | {% endif %} | |
39 | {% if thread.thread.image %} |
|
39 | {% if thread.thread.image %} | |
40 | <div class="image"> |
|
40 | <div class="image"> | |
41 | <a class="thumb" |
|
41 | <a class="thumb" | |
42 | href="{{ thread.thread.image.url }}"><img |
|
42 | href="{{ thread.thread.image.url }}"><img | |
43 | src="{{ thread.thread.image.url_200x150 }}" |
|
43 | src="{{ thread.thread.image.url_200x150 }}" | |
44 | alt="{{ thread.thread.id }}" |
|
44 | alt="{{ thread.thread.id }}" | |
45 | data-width="{{ thread.thread.image_width }}" |
|
45 | data-width="{{ thread.thread.image_width }}" | |
46 | data-height="{{ thread.thread.image_height }}" /> |
|
46 | data-height="{{ thread.thread.image_height }}" /> | |
47 | </a> |
|
47 | </a> | |
48 | </div> |
|
48 | </div> | |
49 | {% endif %} |
|
49 | {% endif %} | |
50 | <div class="message"> |
|
50 | <div class="message"> | |
51 | <div class="post-info"> |
|
51 | <div class="post-info"> | |
52 | <span class="title">{{ thread.thread.title }}</span> |
|
52 | <span class="title">{{ thread.thread.title }}</span> | |
53 | <a class="post_id" href="{% url 'thread' thread.thread.id %}" |
|
53 | <a class="post_id" href="{% url 'thread' thread.thread.id %}" | |
54 | >(#{{ thread.thread.id }})</a> |
|
54 | >(#{{ thread.thread.id }})</a> | |
55 | [{{ thread.thread.pub_time }}] |
|
55 | [{{ thread.thread.pub_time }}] | |
56 | [<a class="link" href="{% url 'thread' thread.thread.id %}#form" |
|
56 | [<a class="link" href="{% url 'thread' thread.thread.id %}#form" | |
57 | >{% trans "Reply" %}</a>] |
|
57 | >{% trans "Reply" %}</a>] | |
58 |
|
58 | |||
59 | {% if moderator %} |
|
59 | {% if moderator %} | |
60 | <span class="moderator_info"> |
|
60 | <span class="moderator_info"> | |
61 | [<a href="{% url 'delete' post_id=thread.thread.id %}?next={{ request.path }}" |
|
61 | [<a href="{% url 'delete' post_id=thread.thread.id %}?next={{ request.path }}" | |
62 | >{% trans 'Delete' %}</a>] |
|
62 | >{% trans 'Delete' %}</a>] | |
63 | ({{ thread.thread.poster_ip }}) |
|
63 | ({{ thread.thread.poster_ip }}) | |
64 | [<a href="{% url 'ban' post_id=thread.thread.id %}?next={{ request.path }}" |
|
64 | [<a href="{% url 'ban' post_id=thread.thread.id %}?next={{ request.path }}" | |
65 | >{% trans 'Ban IP' %}</a>] |
|
65 | >{% trans 'Ban IP' %}</a>] | |
66 | </span> |
|
66 | </span> | |
67 | {% endif %} |
|
67 | {% endif %} | |
68 | </div> |
|
68 | </div> | |
69 | {% autoescape off %} |
|
69 | {% autoescape off %} | |
70 | {{ thread.thread.text.rendered|truncatewords_html:50 }} |
|
70 | {{ thread.thread.text.rendered|truncatewords_html:50 }} | |
71 | {% endautoescape %} |
|
71 | {% endautoescape %} | |
72 | </div> |
|
72 | </div> | |
73 | <div class="metadata"> |
|
73 | <div class="metadata"> | |
74 | {{ thread.thread.get_reply_count }} {% trans 'replies' %}, |
|
74 | {{ thread.thread.get_reply_count }} {% trans 'replies' %}, | |
75 | {{ thread.thread.get_images_count }} {% trans 'images' %}. |
|
75 | {{ thread.thread.get_images_count }} {% trans 'images' %}. | |
76 | {% if thread.thread.tags %} |
|
76 | {% if thread.thread.tags %} | |
77 |
<span class="tags"> |
|
77 | <span class="tags"> | |
78 | {% for tag in thread.thread.tags.all %} |
|
78 | {% for tag in thread.thread.tags.all %} | |
79 | <a class="tag" href=" |
|
79 | <a class="tag" href=" | |
80 | {% url 'tag' tag_name=tag.name %}"> |
|
80 | {% url 'tag' tag_name=tag.name %}"> | |
81 | {{ tag.name }}</a> |
|
81 | #{{ tag.name }}</a> | |
82 | {% endfor %} |
|
82 | {% endfor %} | |
83 | </span> |
|
83 | </span> | |
84 | {% endif %} |
|
84 | {% endif %} | |
85 | </div> |
|
85 | </div> | |
86 | {% if thread.thread.referenced_posts.all %} |
|
86 | {% if thread.thread.referenced_posts.all %} | |
87 | <div class="refmap"> |
|
87 | <div class="refmap"> | |
88 | {% trans "Replies" %}: |
|
88 | {% trans "Replies" %}: | |
89 | {% for ref_post in thread.thread.referenced_posts.all %} |
|
89 | {% for ref_post in thread.thread.referenced_posts.all %} | |
90 | <a href="{% url 'jumper' ref_post.id %}">>>{{ ref_post.id }}</a> |
|
90 | <a href="{% url 'jumper' ref_post.id %}">>>{{ ref_post.id }}</a> | |
91 | {% endfor %} |
|
91 | {% endfor %} | |
92 | </div> |
|
92 | </div> | |
93 | {% endif %} |
|
93 | {% endif %} | |
94 | </div> |
|
94 | </div> | |
95 | {% if thread.thread.get_last_replies.exists %} |
|
95 | {% if thread.thread.get_last_replies.exists %} | |
96 | <div class="last-replies"> |
|
96 | <div class="last-replies"> | |
97 | {% for post in thread.thread.get_last_replies %} |
|
97 | {% for post in thread.thread.get_last_replies %} | |
98 | {% if thread.bumpable %} |
|
98 | {% if thread.bumpable %} | |
99 | <div class="post" id="{{ post.id }}"> |
|
99 | <div class="post" id="{{ post.id }}"> | |
100 | {% else %} |
|
100 | {% else %} | |
101 | <div class="post dead_post" id="{{ post.id }}"> |
|
101 | <div class="post dead_post" id="{{ post.id }}"> | |
102 | {% endif %} |
|
102 | {% endif %} | |
103 | {% if post.image %} |
|
103 | {% if post.image %} | |
104 | <div class="image"> |
|
104 | <div class="image"> | |
105 | <a class="thumb" |
|
105 | <a class="thumb" | |
106 | href="{{ post.image.url }}"><img |
|
106 | href="{{ post.image.url }}"><img | |
107 | src=" {{ post.image.url_200x150 }}" |
|
107 | src=" {{ post.image.url_200x150 }}" | |
108 | alt="{{ post.id }}" |
|
108 | alt="{{ post.id }}" | |
109 | data-width="{{ post.image_width }}" |
|
109 | data-width="{{ post.image_width }}" | |
110 | data-height="{{ post.image_height }}"/> |
|
110 | data-height="{{ post.image_height }}"/> | |
111 | </a> |
|
111 | </a> | |
112 | </div> |
|
112 | </div> | |
113 | {% endif %} |
|
113 | {% endif %} | |
114 | <div class="message"> |
|
114 | <div class="message"> | |
115 | <div class="post-info"> |
|
115 | <div class="post-info"> | |
116 | <span class="title">{{ post.title }}</span> |
|
116 | <span class="title">{{ post.title }}</span> | |
117 | <a class="post_id" href=" |
|
117 | <a class="post_id" href=" | |
118 | {% url 'thread' thread.thread.id %}#{{ post.id }}"> |
|
118 | {% url 'thread' thread.thread.id %}#{{ post.id }}"> | |
119 | (#{{ post.id }})</a> |
|
119 | (#{{ post.id }})</a> | |
120 | [{{ post.pub_time }}] |
|
120 | [{{ post.pub_time }}] | |
121 | </div> |
|
121 | </div> | |
122 | {% autoescape off %} |
|
122 | {% autoescape off %} | |
123 | {{ post.text.rendered|truncatewords_html:50 }} |
|
123 | {{ post.text.rendered|truncatewords_html:50 }} | |
124 | {% endautoescape %} |
|
124 | {% endautoescape %} | |
125 | </div> |
|
125 | </div> | |
126 | {% if post.referenced_posts.all %} |
|
126 | {% if post.referenced_posts.all %} | |
127 | <div class="refmap"> |
|
127 | <div class="refmap"> | |
128 | {% trans "Replies" %}: |
|
128 | {% trans "Replies" %}: | |
129 | {% for ref_post in post.referenced_posts.all %} |
|
129 | {% for ref_post in post.referenced_posts.all %} | |
130 | <a href="{% url 'jumper' ref_post.id %}">>>{{ ref_post.id }}</a> |
|
130 | <a href="{% url 'jumper' ref_post.id %}">>>{{ ref_post.id }}</a> | |
131 | {% endfor %} |
|
131 | {% endfor %} | |
132 | </div> |
|
132 | </div> | |
133 | {% endif %} |
|
133 | {% endif %} | |
134 | </div> |
|
134 | </div> | |
135 | {% endfor %} |
|
135 | {% endfor %} | |
136 | </div> |
|
136 | </div> | |
137 | {% endif %} |
|
137 | {% endif %} | |
138 | </div> |
|
138 | </div> | |
139 | {% endfor %} |
|
139 | {% endfor %} | |
140 | {% else %} |
|
140 | {% else %} | |
141 | <div class="post"> |
|
141 | <div class="post"> | |
142 | {% trans 'No threads exist. Create the first one!' %}</div> |
|
142 | {% trans 'No threads exist. Create the first one!' %}</div> | |
143 | {% endif %} |
|
143 | {% endif %} | |
144 |
|
144 | |||
145 | <form enctype="multipart/form-data" method="post">{% csrf_token %} |
|
145 | <form enctype="multipart/form-data" method="post">{% csrf_token %} | |
146 | <div class="post-form-w"> |
|
146 | <div class="post-form-w"> | |
147 |
|
147 | |||
148 | <div class="form-title">{% trans "Create new thread" %}</div> |
|
148 | <div class="form-title">{% trans "Create new thread" %}</div> | |
149 | <div class="post-form"> |
|
149 | <div class="post-form"> | |
150 | <div class="form-row"> |
|
150 | <div class="form-row"> | |
151 | <div class="form-label">{% trans 'Title' %}</div> |
|
151 | <div class="form-label">{% trans 'Title' %}</div> | |
152 | <div class="form-input">{{ form.title }}</div> |
|
152 | <div class="form-input">{{ form.title }}</div> | |
153 | <div class="form-errors">{{ form.title.errors }}</div> |
|
153 | <div class="form-errors">{{ form.title.errors }}</div> | |
154 | </div> |
|
154 | </div> | |
155 | <div class="form-row"> |
|
155 | <div class="form-row"> | |
156 | <div class="form-label">{% trans 'Formatting' %}</div> |
|
156 | <div class="form-label">{% trans 'Formatting' %}</div> | |
157 | <div class="form-input" id="mark_panel"> |
|
157 | <div class="form-input" id="mark_panel"> | |
158 | <span class="mark_btn" id="quote"><span class="quote">>{% trans 'quote' %}</span></span> |
|
158 | <span class="mark_btn" id="quote"><span class="quote">>{% trans 'quote' %}</span></span> | |
159 | <span class="mark_btn" id="italic"><i>{% trans 'italic' %}</i></span> |
|
159 | <span class="mark_btn" id="italic"><i>{% trans 'italic' %}</i></span> | |
160 | <span class="mark_btn" id="bold"><b>{% trans 'bold' %}</b></span> |
|
160 | <span class="mark_btn" id="bold"><b>{% trans 'bold' %}</b></span> | |
161 | <span class="mark_btn" id="spoiler"><span class="spoiler">{% trans 'spoiler' %}</span></span> |
|
161 | <span class="mark_btn" id="spoiler"><span class="spoiler">{% trans 'spoiler' %}</span></span> | |
162 | <span class="mark_btn" id="comment"><span class="comment">// {% trans 'comment' %}</span></span> |
|
162 | <span class="mark_btn" id="comment"><span class="comment">// {% trans 'comment' %}</span></span> | |
163 | </div> |
|
163 | </div> | |
164 | </div> |
|
164 | </div> | |
165 | <div class="form-row"> |
|
165 | <div class="form-row"> | |
166 | <div class="form-label">{% trans 'Text' %}</div> |
|
166 | <div class="form-label">{% trans 'Text' %}</div> | |
167 | <div class="form-input">{{ form.text }}</div> |
|
167 | <div class="form-input">{{ form.text }}</div> | |
168 | <div class="form-errors">{{ form.text.errors }}</div> |
|
168 | <div class="form-errors">{{ form.text.errors }}</div> | |
169 | </div> |
|
169 | </div> | |
170 | <div class="form-row"> |
|
170 | <div class="form-row"> | |
171 | <div class="form-label">{% trans 'Image' %}</div> |
|
171 | <div class="form-label">{% trans 'Image' %}</div> | |
172 | <div class="form-input">{{ form.image }}</div> |
|
172 | <div class="form-input">{{ form.image }}</div> | |
173 | <div class="form-errors">{{ form.image.errors }}</div> |
|
173 | <div class="form-errors">{{ form.image.errors }}</div> | |
174 | </div> |
|
174 | </div> | |
175 | <div class="form-row"> |
|
175 | <div class="form-row"> | |
176 | <div class="form-label">{% trans 'Tags' %}</div> |
|
176 | <div class="form-label">{% trans 'Tags' %}</div> | |
177 | <div class="form-input">{{ form.tags }}</div> |
|
177 | <div class="form-input">{{ form.tags }}</div> | |
178 | <div class="form-errors">{{ form.tags.errors }}</div> |
|
178 | <div class="form-errors">{{ form.tags.errors }}</div> | |
179 | </div> |
|
179 | </div> | |
180 | <div class="form-row form-email"> |
|
180 | <div class="form-row form-email"> | |
181 | <div class="form-label">{% trans 'e-mail' %}</div> |
|
181 | <div class="form-label">{% trans 'e-mail' %}</div> | |
182 | <div class="form-input">{{ form.email }}</div> |
|
182 | <div class="form-input">{{ form.email }}</div> | |
183 | <div class="form-errors">{{ form.email.errors }}</div> |
|
183 | <div class="form-errors">{{ form.email.errors }}</div> | |
184 | </div> |
|
184 | </div> | |
185 | <div class="form-row"> |
|
185 | <div class="form-row"> | |
186 | {{ form.captcha }} |
|
186 | {{ form.captcha }} | |
187 | <div class="form-errors">{{ form.captcha.errors }}</div> |
|
187 | <div class="form-errors">{{ form.captcha.errors }}</div> | |
188 | </div> |
|
188 | </div> | |
189 | <div class="form-row"> |
|
189 | <div class="form-row"> | |
190 | <div class="form-errors">{{ form.other.errors }}</div> |
|
190 | <div class="form-errors">{{ form.other.errors }}</div> | |
191 | </div> |
|
191 | </div> | |
192 | </div> |
|
192 | </div> | |
193 | <div class="form-submit"> |
|
193 | <div class="form-submit"> | |
194 | <input type="submit" value="{% trans "Post" %}"/></div> |
|
194 | <input type="submit" value="{% trans "Post" %}"/></div> | |
195 | <div> |
|
195 | <div> | |
196 | {% trans 'Tags must be delimited by spaces. Text or image is required.' %} |
|
196 | {% trans 'Tags must be delimited by spaces. Text or image is required.' %} | |
197 | </div> |
|
197 | </div> | |
198 | <div><a href="{% url "staticpage" name="help" %}"> |
|
198 | <div><a href="{% url "staticpage" name="help" %}"> | |
199 | {% trans 'Text syntax' %}</a></div> |
|
199 | {% trans 'Text syntax' %}</a></div> | |
200 | </div> |
|
200 | </div> | |
201 | </form> |
|
201 | </form> | |
202 |
|
202 | |||
203 | {% endblock %} |
|
203 | {% endblock %} | |
204 |
|
204 | |||
205 | {% block metapanel %} |
|
205 | {% block metapanel %} | |
206 |
|
206 | |||
207 | <span class="metapanel"> |
|
207 | <span class="metapanel"> | |
208 | <b><a href="{% url "authors" %}">Neboard</a> 1.3</b> |
|
208 | <b><a href="{% url "authors" %}">Neboard</a> 1.3</b> | |
209 | {% trans "Pages:" %} |
|
209 | {% trans "Pages:" %} | |
210 | {% for page in pages %} |
|
210 | {% for page in pages %} | |
211 | [<a href=" |
|
211 | [<a href=" | |
212 | {% if tag %} |
|
212 | {% if tag %} | |
213 | {% url "tag" tag_name=tag page=page %} |
|
213 | {% url "tag" tag_name=tag page=page %} | |
214 | {% else %} |
|
214 | {% else %} | |
215 | {% url "index" page=page %} |
|
215 | {% url "index" page=page %} | |
216 | {% endif %} |
|
216 | {% endif %} | |
217 | ">{{ page }}</a>] |
|
217 | ">{{ page }}</a>] | |
218 | {% endfor %} |
|
218 | {% endfor %} | |
219 | [<a href="rss/">RSS</a>] |
|
219 | [<a href="rss/">RSS</a>] | |
220 | </span> |
|
220 | </span> | |
221 |
|
221 | |||
222 | {% endblock %} |
|
222 | {% endblock %} |
@@ -1,160 +1,160 b'' | |||||
1 | {% extends "boards/base.html" %} |
|
1 | {% extends "boards/base.html" %} | |
2 |
|
2 | |||
3 | {% load i18n %} |
|
3 | {% load i18n %} | |
4 | {% load markup %} |
|
4 | {% load markup %} | |
5 | {% load cache %} |
|
5 | {% load cache %} | |
6 | {% load static from staticfiles %} |
|
6 | {% load static from staticfiles %} | |
7 |
|
7 | |||
8 | {% block head %} |
|
8 | {% block head %} | |
9 | <title>Neboard - {{ posts.0.get_title }}</title> |
|
9 | <title>Neboard - {{ posts.0.get_title }}</title> | |
10 | {% endblock %} |
|
10 | {% endblock %} | |
11 |
|
11 | |||
12 | {% block content %} |
|
12 | {% block content %} | |
13 | {% get_current_language as LANGUAGE_CODE %} |
|
13 | {% get_current_language as LANGUAGE_CODE %} | |
14 |
|
14 | |||
15 | <script src="{% static 'js/thread.js' %}"></script> |
|
15 | <script src="{% static 'js/thread.js' %}"></script> | |
16 |
|
16 | |||
17 | {% if posts %} |
|
17 | {% if posts %} | |
18 | {% cache 600 thread_view posts.0.last_edit_time moderator LANGUAGE_CODE %} |
|
18 | {% cache 600 thread_view posts.0.last_edit_time moderator LANGUAGE_CODE %} | |
19 | {% if bumpable %} |
|
19 | {% if bumpable %} | |
20 | <div class="bar-bg"> |
|
20 | <div class="bar-bg"> | |
21 | <div class="bar-value" style="width:{{ bumplimit_progress }}%"> |
|
21 | <div class="bar-value" style="width:{{ bumplimit_progress }}%"> | |
22 | </div> |
|
22 | </div> | |
23 | <div class="bar-text"> |
|
23 | <div class="bar-text"> | |
24 | {{ posts_left }} {% trans 'posts to bumplimit' %} |
|
24 | {{ posts_left }} {% trans 'posts to bumplimit' %} | |
25 | </div> |
|
25 | </div> | |
26 | </div> |
|
26 | </div> | |
27 | {% endif %} |
|
27 | {% endif %} | |
28 | <div class="thread"> |
|
28 | <div class="thread"> | |
29 | {% for post in posts %} |
|
29 | {% for post in posts %} | |
30 | {% if bumpable %} |
|
30 | {% if bumpable %} | |
31 | <div class="post" id="{{ post.id }}"> |
|
31 | <div class="post" id="{{ post.id }}"> | |
32 | {% else %} |
|
32 | {% else %} | |
33 | <div class="post dead_post" id="{{ post.id }}"> |
|
33 | <div class="post dead_post" id="{{ post.id }}"> | |
34 | {% endif %} |
|
34 | {% endif %} | |
35 | {% if post.image %} |
|
35 | {% if post.image %} | |
36 | <div class="image"> |
|
36 | <div class="image"> | |
37 | <a |
|
37 | <a | |
38 | class="thumb" |
|
38 | class="thumb" | |
39 | href="{{ post.image.url }}"><img |
|
39 | href="{{ post.image.url }}"><img | |
40 | src="{{ post.image.url_200x150 }}" |
|
40 | src="{{ post.image.url_200x150 }}" | |
41 | alt="{{ post.id }}" |
|
41 | alt="{{ post.id }}" | |
42 | data-width="{{ post.image_width }}" |
|
42 | data-width="{{ post.image_width }}" | |
43 | data-height="{{ post.image_height }}"/> |
|
43 | data-height="{{ post.image_height }}"/> | |
44 | </a> |
|
44 | </a> | |
45 | </div> |
|
45 | </div> | |
46 | {% endif %} |
|
46 | {% endif %} | |
47 | <div class="message"> |
|
47 | <div class="message"> | |
48 | <div class="post-info"> |
|
48 | <div class="post-info"> | |
49 | <span class="title">{{ post.title }}</span> |
|
49 | <span class="title">{{ post.title }}</span> | |
50 | <a class="post_id" href="#{{ post.id }}"> |
|
50 | <a class="post_id" href="#{{ post.id }}"> | |
51 | (#{{ post.id }})</a> |
|
51 | (#{{ post.id }})</a> | |
52 | [{{ post.pub_time }}] |
|
52 | [{{ post.pub_time }}] | |
53 | [<a href="#" onclick="javascript:addQuickReply('{{ post.id }}') |
|
53 | [<a href="#" onclick="javascript:addQuickReply('{{ post.id }}') | |
54 | ; return false;">>></a>] |
|
54 | ; return false;">>></a>] | |
55 |
|
55 | |||
56 | {% if moderator %} |
|
56 | {% if moderator %} | |
57 | <span class="moderator_info"> |
|
57 | <span class="moderator_info"> | |
58 | [<a href="{% url 'delete' post_id=post.id %}" |
|
58 | [<a href="{% url 'delete' post_id=post.id %}" | |
59 | >{% trans 'Delete' %}</a>] |
|
59 | >{% trans 'Delete' %}</a>] | |
60 | ({{ post.poster_ip }}) |
|
60 | ({{ post.poster_ip }}) | |
61 | [<a href="{% url 'ban' post_id=post.id %}?next={{ request.path }}" |
|
61 | [<a href="{% url 'ban' post_id=post.id %}?next={{ request.path }}" | |
62 | >{% trans 'Ban IP' %}</a>] |
|
62 | >{% trans 'Ban IP' %}</a>] | |
63 | </span> |
|
63 | </span> | |
64 | {% endif %} |
|
64 | {% endif %} | |
65 | </div> |
|
65 | </div> | |
66 | {% autoescape off %} |
|
66 | {% autoescape off %} | |
67 | {{ post.text.rendered }} |
|
67 | {{ post.text.rendered }} | |
68 | {% endautoescape %} |
|
68 | {% endautoescape %} | |
69 | {% if post.referenced_posts.all %} |
|
69 | {% if post.referenced_posts.all %} | |
70 | <div class="refmap"> |
|
70 | <div class="refmap"> | |
71 | {% trans "Replies" %}: |
|
71 | {% trans "Replies" %}: | |
72 | {% for ref_post in post.referenced_posts.all %} |
|
72 | {% for ref_post in post.referenced_posts.all %} | |
73 | <a href="{% url 'jumper' ref_post.id %}">>>{{ ref_post.id }}</a> |
|
73 | <a href="{% url 'jumper' ref_post.id %}">>>{{ ref_post.id }}</a> | |
74 | {% endfor %} |
|
74 | {% endfor %} | |
75 | </div> |
|
75 | </div> | |
76 | {% endif %} |
|
76 | {% endif %} | |
77 | </div> |
|
77 | </div> | |
78 | {% if post.id == posts.0.id %} |
|
78 | {% if post.id == posts.0.id %} | |
79 | <div class="metadata"> |
|
79 | <div class="metadata"> | |
80 |
<span class="tags"> |
|
80 | <span class="tags"> | |
81 | {% for tag in post.tags.all %} |
|
81 | {% for tag in post.tags.all %} | |
82 | <a class="tag" href="{% url 'tag' tag.name %}"> |
|
82 | <a class="tag" href="{% url 'tag' tag.name %}"> | |
83 | {{ tag.name }}</a> |
|
83 | #{{ tag.name }}</a> | |
84 | {% endfor %} |
|
84 | {% endfor %} | |
85 | </span> |
|
85 | </span> | |
86 | </div> |
|
86 | </div> | |
87 | {% endif %} |
|
87 | {% endif %} | |
88 | </div> |
|
88 | </div> | |
89 | {% endfor %} |
|
89 | {% endfor %} | |
90 | </div> |
|
90 | </div> | |
91 | {% endcache %} |
|
91 | {% endcache %} | |
92 | {% endif %} |
|
92 | {% endif %} | |
93 |
|
93 | |||
94 | <form id="form" enctype="multipart/form-data" method="post" |
|
94 | <form id="form" enctype="multipart/form-data" method="post" | |
95 | >{% csrf_token %} |
|
95 | >{% csrf_token %} | |
96 | <div class="post-form-w"> |
|
96 | <div class="post-form-w"> | |
97 | <div class="form-title">{% trans "Reply to thread" %} #{{ posts.0.id }}</div> |
|
97 | <div class="form-title">{% trans "Reply to thread" %} #{{ posts.0.id }}</div> | |
98 | <div class="post-form"> |
|
98 | <div class="post-form"> | |
99 | <div class="form-row"> |
|
99 | <div class="form-row"> | |
100 | <div class="form-label">{% trans 'Title' %}</div> |
|
100 | <div class="form-label">{% trans 'Title' %}</div> | |
101 | <div class="form-input">{{ form.title }}</div> |
|
101 | <div class="form-input">{{ form.title }}</div> | |
102 | <div class="form-errors">{{ form.title.errors }}</div> |
|
102 | <div class="form-errors">{{ form.title.errors }}</div> | |
103 | </div> |
|
103 | </div> | |
104 | <div class="form-row"> |
|
104 | <div class="form-row"> | |
105 | <div class="form-label">{% trans 'Formatting' %}</div> |
|
105 | <div class="form-label">{% trans 'Formatting' %}</div> | |
106 | <div class="form-input" id="mark_panel"> |
|
106 | <div class="form-input" id="mark_panel"> | |
107 | <span class="mark_btn" id="quote"><span class="quote">>{% trans 'quote' %}</span></span> |
|
107 | <span class="mark_btn" id="quote"><span class="quote">>{% trans 'quote' %}</span></span> | |
108 | <span class="mark_btn" id="italic"><i>{% trans 'italic' %}</i></span> |
|
108 | <span class="mark_btn" id="italic"><i>{% trans 'italic' %}</i></span> | |
109 | <span class="mark_btn" id="bold"><b>{% trans 'bold' %}</b></span> |
|
109 | <span class="mark_btn" id="bold"><b>{% trans 'bold' %}</b></span> | |
110 | <span class="mark_btn" id="spoiler"><span class="spoiler">{% trans 'spoiler' %}</span></span> |
|
110 | <span class="mark_btn" id="spoiler"><span class="spoiler">{% trans 'spoiler' %}</span></span> | |
111 | <span class="mark_btn" id="comment"><span class="comment">// {% trans 'comment' %}</span></span> |
|
111 | <span class="mark_btn" id="comment"><span class="comment">// {% trans 'comment' %}</span></span> | |
112 | </div> |
|
112 | </div> | |
113 | </div> |
|
113 | </div> | |
114 | <div class="form-row"> |
|
114 | <div class="form-row"> | |
115 | <div class="form-label">{% trans 'Text' %}</div> |
|
115 | <div class="form-label">{% trans 'Text' %}</div> | |
116 | <div class="form-input">{{ form.text }}</div> |
|
116 | <div class="form-input">{{ form.text }}</div> | |
117 | <div class="form-errors">{{ form.text.errors }}</div> |
|
117 | <div class="form-errors">{{ form.text.errors }}</div> | |
118 | </div> |
|
118 | </div> | |
119 | <div class="form-row"> |
|
119 | <div class="form-row"> | |
120 | <div class="form-label">{% trans 'Image' %}</div> |
|
120 | <div class="form-label">{% trans 'Image' %}</div> | |
121 | <div class="form-input">{{ form.image }}</div> |
|
121 | <div class="form-input">{{ form.image }}</div> | |
122 | <div class="form-errors">{{ form.image.errors }}</div> |
|
122 | <div class="form-errors">{{ form.image.errors }}</div> | |
123 | </div> |
|
123 | </div> | |
124 | <div class="form-row form-email"> |
|
124 | <div class="form-row form-email"> | |
125 | <div class="form-label">{% trans 'e-mail' %}</div> |
|
125 | <div class="form-label">{% trans 'e-mail' %}</div> | |
126 | <div class="form-input">{{ form.email }}</div> |
|
126 | <div class="form-input">{{ form.email }}</div> | |
127 | <div class="form-errors">{{ form.email.errors }}</div> |
|
127 | <div class="form-errors">{{ form.email.errors }}</div> | |
128 | </div> |
|
128 | </div> | |
129 | <div class="form-row"> |
|
129 | <div class="form-row"> | |
130 | {{ form.captcha }} |
|
130 | {{ form.captcha }} | |
131 | <div class="form-errors">{{ form.captcha.errors }}</div> |
|
131 | <div class="form-errors">{{ form.captcha.errors }}</div> | |
132 | </div> |
|
132 | </div> | |
133 | <div class="form-row"> |
|
133 | <div class="form-row"> | |
134 | <div class="form-errors">{{ form.other.errors }}</div> |
|
134 | <div class="form-errors">{{ form.other.errors }}</div> | |
135 | </div> |
|
135 | </div> | |
136 | </div> |
|
136 | </div> | |
137 |
|
137 | |||
138 | <div class="form-submit"><input type="submit" |
|
138 | <div class="form-submit"><input type="submit" | |
139 | value="{% trans "Post" %}"/></div> |
|
139 | value="{% trans "Post" %}"/></div> | |
140 | <div><a href="{% url "staticpage" name="help" %}"> |
|
140 | <div><a href="{% url "staticpage" name="help" %}"> | |
141 | {% trans 'Text syntax' %}</a></div> |
|
141 | {% trans 'Text syntax' %}</a></div> | |
142 | </div> |
|
142 | </div> | |
143 | </form> |
|
143 | </form> | |
144 |
|
144 | |||
145 | {% endblock %} |
|
145 | {% endblock %} | |
146 |
|
146 | |||
147 | {% block metapanel %} |
|
147 | {% block metapanel %} | |
148 |
|
148 | |||
149 | {% get_current_language as LANGUAGE_CODE %} |
|
149 | {% get_current_language as LANGUAGE_CODE %} | |
150 |
|
150 | |||
151 | <span class="metapanel"> |
|
151 | <span class="metapanel"> | |
152 | {% cache 600 thread_meta posts.0.last_edit_time moderator LANGUAGE_CODE %} |
|
152 | {% cache 600 thread_meta posts.0.last_edit_time moderator LANGUAGE_CODE %} | |
153 | {{ posts.0.get_reply_count }} {% trans 'replies' %}, |
|
153 | {{ posts.0.get_reply_count }} {% trans 'replies' %}, | |
154 | {{ posts.0.get_images_count }} {% trans 'images' %}. |
|
154 | {{ posts.0.get_images_count }} {% trans 'images' %}. | |
155 | {% trans 'Last update: ' %}{{ posts.0.last_edit_time }} |
|
155 | {% trans 'Last update: ' %}{{ posts.0.last_edit_time }} | |
156 | [<a href="rss/">RSS</a>] |
|
156 | [<a href="rss/">RSS</a>] | |
157 | {% endcache %} |
|
157 | {% endcache %} | |
158 | </span> |
|
158 | </span> | |
159 |
|
159 | |||
160 | {% endblock %} |
|
160 | {% endblock %} |
General Comments 0
You need to be logged in to leave comments.
Login now