##// END OF EJS Templates
Added localization to formatting panel buttons.
neko259 -
r245:29ee278d default
parent child Browse files
Show More
1 NO CONTENT: modified file, binary diff hidden
NO CONTENT: modified file, binary diff hidden
@@ -1,340 +1,354 b''
1 # SOME DESCRIPTIVE TITLE.
1 # SOME DESCRIPTIVE TITLE.
2 # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
2 # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3 # This file is distributed under the same license as the PACKAGE package.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
5 #
6 msgid ""
6 msgid ""
7 msgstr ""
7 msgstr ""
8 "Project-Id-Version: PACKAGE VERSION\n"
8 "Project-Id-Version: PACKAGE VERSION\n"
9 "Report-Msgid-Bugs-To: \n"
9 "Report-Msgid-Bugs-To: \n"
10 "POT-Creation-Date: 2013-09-22 18:52+0300\n"
10 "POT-Creation-Date: 2013-09-22 21:35+0300\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
14 "Language: ru\n"
14 "Language: ru\n"
15 "MIME-Version: 1.0\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
18 "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
19 "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
19 "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
20
20
21 #: authors.py:5
21 #: authors.py:5
22 msgid "author"
22 msgid "author"
23 msgstr "автор"
23 msgstr "автор"
24
24
25 #: authors.py:6
25 #: authors.py:6
26 msgid "developer"
26 msgid "developer"
27 msgstr "разработчик"
27 msgstr "разработчик"
28
28
29 #: authors.py:7
29 #: authors.py:7
30 msgid "javascript developer"
30 msgid "javascript developer"
31 msgstr "разработчик javascript"
31 msgstr "разработчик javascript"
32
32
33 #: authors.py:8
33 #: authors.py:8
34 msgid "designer"
34 msgid "designer"
35 msgstr "дизайнер"
35 msgstr "дизайнер"
36
36
37 #: forms.py:51 templates/boards/posting_general.html:135
37 #: forms.py:51 templates/boards/posting_general.html:135
38 #: templates/boards/thread.html:82
38 #: templates/boards/thread.html:82
39 msgid "Title"
39 msgid "Title"
40 msgstr "Заголовок"
40 msgstr "Заголовок"
41
41
42 #: forms.py:53 templates/boards/posting_general.html:150
42 #: forms.py:53 templates/boards/posting_general.html:150
43 #: templates/boards/thread.html:97
43 #: templates/boards/thread.html:97
44 msgid "Text"
44 msgid "Text"
45 msgstr "Текст"
45 msgstr "Текст"
46
46
47 #: forms.py:54 templates/boards/posting_general.html:155
47 #: forms.py:54 templates/boards/posting_general.html:155
48 #: templates/boards/thread.html:102
48 #: templates/boards/thread.html:102
49 msgid "Image"
49 msgid "Image"
50 msgstr "Изображение"
50 msgstr "Изображение"
51
51
52 #: forms.py:57 templates/boards/posting_general.html:165
52 #: forms.py:57 templates/boards/posting_general.html:165
53 #: templates/boards/thread.html:107
53 #: templates/boards/thread.html:107
54 msgid "e-mail"
54 msgid "e-mail"
55 msgstr ""
55 msgstr ""
56
56
57 #: forms.py:67
57 #: forms.py:67
58 #, python-format
58 #, python-format
59 msgid "Title must have less than %s characters"
59 msgid "Title must have less than %s characters"
60 msgstr "Заголовок должен иметь меньше %s символов"
60 msgstr "Заголовок должен иметь меньше %s символов"
61
61
62 #: forms.py:76
62 #: forms.py:76
63 #, python-format
63 #, python-format
64 msgid "Text must have less than %s characters"
64 msgid "Text must have less than %s characters"
65 msgstr "Текст должен быть короче %s символов"
65 msgstr "Текст должен быть короче %s символов"
66
66
67 #: forms.py:85
67 #: forms.py:85
68 #, python-format
68 #, python-format
69 msgid "Image must be less than %s bytes"
69 msgid "Image must be less than %s bytes"
70 msgstr "Изображение должно быть менее %s байт"
70 msgstr "Изображение должно быть менее %s байт"
71
71
72 #: forms.py:111
72 #: forms.py:111
73 msgid "Either text or image must be entered."
73 msgid "Either text or image must be entered."
74 msgstr "Текст или картинка должны быть введены."
74 msgstr "Текст или картинка должны быть введены."
75
75
76 #: forms.py:124
76 #: forms.py:124
77 #, python-format
77 #, python-format
78 msgid "Wait %s seconds after last posting"
78 msgid "Wait %s seconds after last posting"
79 msgstr "Подождите %s секунд после последнего постинга"
79 msgstr "Подождите %s секунд после последнего постинга"
80
80
81 #: forms.py:138 templates/boards/post.html:39
81 #: forms.py:138 templates/boards/post.html:39
82 #: templates/boards/posting_general.html:77
82 #: templates/boards/posting_general.html:77
83 #: templates/boards/posting_general.html:160 templates/boards/tags.html:7
83 #: templates/boards/posting_general.html:160 templates/boards/tags.html:7
84 #: templates/boards/thread.html:62 templates/boards/rss/post.html:10
84 #: templates/boards/thread.html:62 templates/boards/rss/post.html:10
85 msgid "Tags"
85 msgid "Tags"
86 msgstr "Теги"
86 msgstr "Теги"
87
87
88 #: forms.py:146
88 #: forms.py:146
89 msgid "Inappropriate characters in tags."
89 msgid "Inappropriate characters in tags."
90 msgstr "Недопустимые символы в тегах."
90 msgstr "Недопустимые символы в тегах."
91
91
92 #: forms.py:174 forms.py:195
92 #: forms.py:174 forms.py:195
93 msgid "Captcha validation failed"
93 msgid "Captcha validation failed"
94 msgstr "Проверка капчи провалена"
94 msgstr "Проверка капчи провалена"
95
95
96 #: forms.py:201
96 #: forms.py:201
97 msgid "Theme"
97 msgid "Theme"
98 msgstr "Тема"
98 msgstr "Тема"
99
99
100 #: forms.py:206
100 #: forms.py:206
101 msgid "Enable moderation panel"
101 msgid "Enable moderation panel"
102 msgstr "Включить панель модерации"
102 msgstr "Включить панель модерации"
103
103
104 #: forms.py:221
104 #: forms.py:221
105 msgid "No such user found"
105 msgid "No such user found"
106 msgstr "Данный пользователь не найден"
106 msgstr "Данный пользователь не найден"
107
107
108 #: forms.py:235
108 #: forms.py:235
109 #, python-format
109 #, python-format
110 msgid "Wait %s minutes after last login"
110 msgid "Wait %s minutes after last login"
111 msgstr "Подождите %s минут после последнего входа"
111 msgstr "Подождите %s минут после последнего входа"
112
112
113 #: templates/boards/404.html:6
113 #: templates/boards/404.html:6
114 msgid "Not found"
114 msgid "Not found"
115 msgstr "Не найдено"
115 msgstr "Не найдено"
116
116
117 #: templates/boards/404.html:12
117 #: templates/boards/404.html:12
118 msgid "This page does not exist"
118 msgid "This page does not exist"
119 msgstr "Этой страницы не существует"
119 msgstr "Этой страницы не существует"
120
120
121 #: templates/boards/authors.html:6
121 #: templates/boards/authors.html:6
122 msgid "Authors"
122 msgid "Authors"
123 msgstr "Авторы"
123 msgstr "Авторы"
124
124
125 #: templates/boards/authors.html:24
125 #: templates/boards/authors.html:24
126 msgid "Distributed under the"
126 msgid "Distributed under the"
127 msgstr "Распространяется под"
127 msgstr "Распространяется под"
128
128
129 #: templates/boards/authors.html:26
129 #: templates/boards/authors.html:26
130 msgid "license"
130 msgid "license"
131 msgstr "лицензией"
131 msgstr "лицензией"
132
132
133 #: templates/boards/authors.html:28
133 #: templates/boards/authors.html:28
134 msgid "Repository"
134 msgid "Repository"
135 msgstr "Репозиторий"
135 msgstr "Репозиторий"
136
136
137 #: templates/boards/base.html:14
137 #: templates/boards/base.html:12
138 msgid "Feed"
138 msgid "Feed"
139 msgstr "Лента"
139 msgstr "Лента"
140
140
141 #: templates/boards/base.html:34
141 #: templates/boards/base.html:33
142 msgid "All threads"
142 msgid "All threads"
143 msgstr "Все темы"
143 msgstr "Все темы"
144
144
145 #: templates/boards/base.html:39
145 #: templates/boards/base.html:38
146 msgid "Tag management"
146 msgid "Tag management"
147 msgstr "Управление тегами"
147 msgstr "Управление тегами"
148
148
149 #: templates/boards/base.html:41
149 #: templates/boards/base.html:40
150 msgid "Settings"
150 msgid "Settings"
151 msgstr "Настройки"
151 msgstr "Настройки"
152
152
153 #: templates/boards/base.html:48 templates/boards/login.html:6
153 #: templates/boards/base.html:47 templates/boards/login.html:6
154 #: templates/boards/login.html.py:21
154 #: templates/boards/login.html.py:21
155 msgid "Login"
155 msgid "Login"
156 msgstr "Вход"
156 msgstr "Вход"
157
157
158 #: templates/boards/base.html:49
158 #: templates/boards/base.html:48
159 msgid "Up"
159 msgid "Up"
160 msgstr "Вверх"
160 msgstr "Вверх"
161
161
162 #: templates/boards/login.html:15
162 #: templates/boards/login.html:15
163 msgid "User ID"
163 msgid "User ID"
164 msgstr "ID пользователя"
164 msgstr "ID пользователя"
165
165
166 #: templates/boards/login.html:24
166 #: templates/boards/login.html:24
167 msgid "Insert your user id above"
167 msgid "Insert your user id above"
168 msgstr "Вставьте свой ID пользователя выше"
168 msgstr "Вставьте свой ID пользователя выше"
169
169
170 #: templates/boards/post.html:10 templates/boards/posting_general.html:44
170 #: templates/boards/post.html:10 templates/boards/posting_general.html:44
171 #: templates/boards/posting_general.html:100 templates/boards/thread.html:31
171 #: templates/boards/posting_general.html:100 templates/boards/thread.html:31
172 #: templates/boards/rss/post.html:5
172 #: templates/boards/rss/post.html:5
173 msgid "Post image"
173 msgid "Post image"
174 msgstr "Изображение сообщения"
174 msgstr "Изображение сообщения"
175
175
176 #: templates/boards/post.html:26 templates/boards/posting_general.html:62
176 #: templates/boards/post.html:26 templates/boards/posting_general.html:62
177 #: templates/boards/thread.html:49
177 #: templates/boards/thread.html:49
178 msgid "Delete"
178 msgid "Delete"
179 msgstr "Удалить"
179 msgstr "Удалить"
180
180
181 #: templates/boards/post.html:29 templates/boards/posting_general.html:65
181 #: templates/boards/post.html:29 templates/boards/posting_general.html:65
182 #: templates/boards/thread.html:52
182 #: templates/boards/thread.html:52
183 msgid "Ban IP"
183 msgid "Ban IP"
184 msgstr "Заблокировать IP"
184 msgstr "Заблокировать IP"
185
185
186 #: templates/boards/posting_general.html:19
186 #: templates/boards/posting_general.html:19
187 msgid "Tag: "
187 msgid "Tag: "
188 msgstr "Тег: "
188 msgstr "Тег: "
189
189
190 #: templates/boards/posting_general.html:57
190 #: templates/boards/posting_general.html:57
191 msgid "Reply"
191 msgid "Reply"
192 msgstr "Ответ"
192 msgstr "Ответ"
193
193
194 #: templates/boards/posting_general.html:74 templates/boards/thread.html:135
194 #: templates/boards/posting_general.html:74 templates/boards/thread.html:135
195 msgid "replies"
195 msgid "replies"
196 msgstr "ответов"
196 msgstr "ответов"
197
197
198 #: templates/boards/posting_general.html:75 templates/boards/thread.html:136
198 #: templates/boards/posting_general.html:75 templates/boards/thread.html:136
199 msgid "images"
199 msgid "images"
200 msgstr "изображений"
200 msgstr "изображений"
201
201
202 #: templates/boards/posting_general.html:126
202 #: templates/boards/posting_general.html:126
203 msgid "No threads exist. Create the first one!"
203 msgid "No threads exist. Create the first one!"
204 msgstr "Нет тем. Создайте первую!"
204 msgstr "Нет тем. Создайте первую!"
205
205
206 #: templates/boards/posting_general.html:132
206 #: templates/boards/posting_general.html:132
207 msgid "Create new thread"
207 msgid "Create new thread"
208 msgstr "Создать новую тему"
208 msgstr "Создать новую тему"
209
209
210 #: templates/boards/posting_general.html:140 templates/boards/thread.html:87
210 #: templates/boards/posting_general.html:140 templates/boards/thread.html:87
211 msgid "Formatting"
211 msgid "Formatting"
212 msgstr "Форматирование"
212 msgstr "Форматирование"
213
213
214 #: templates/boards/posting_general.html:142 templates/boards/thread.html:89
215 msgid "quote"
216 msgstr "цитата"
217
218 #: templates/boards/posting_general.html:143 templates/boards/thread.html:90
219 msgid "italic"
220 msgstr "курсив"
221
222 #: templates/boards/posting_general.html:144 templates/boards/thread.html:91
223 msgid "bold"
224 msgstr "полужирный"
225
226 #: templates/boards/posting_general.html:145 templates/boards/thread.html:92
227 msgid "spoiler"
228 msgstr "спойлер"
229
230 #: templates/boards/posting_general.html:146 templates/boards/thread.html:93
231 msgid "comment"
232 msgstr "комментарий"
233
214 #: templates/boards/posting_general.html:178 templates/boards/thread.html:121
234 #: templates/boards/posting_general.html:178 templates/boards/thread.html:121
215 msgid "Post"
235 msgid "Post"
216 msgstr "Отправить"
236 msgstr "Отправить"
217
237
218 #: templates/boards/posting_general.html:180
238 #: templates/boards/posting_general.html:180
219 msgid "Tags must be delimited by spaces. Text or image is required."
239 msgid "Tags must be delimited by spaces. Text or image is required."
220 msgstr ""
240 msgstr ""
221 "Теги должны быть разделены пробелами. Текст или изображение обязательны."
241 "Теги должны быть разделены пробелами. Текст или изображение обязательны."
222
242
223 #: templates/boards/posting_general.html:183 templates/boards/thread.html:123
243 #: templates/boards/posting_general.html:183 templates/boards/thread.html:123
224 msgid "Text syntax"
244 msgid "Text syntax"
225 msgstr "Синтаксис текста"
245 msgstr "Синтаксис текста"
226
246
227 #: templates/boards/posting_general.html:193
247 #: templates/boards/posting_general.html:193
228 msgid "Pages:"
248 msgid "Pages:"
229 msgstr "Страницы: "
249 msgstr "Страницы: "
230
250
231 #: templates/boards/settings.html:13
251 #: templates/boards/settings.html:13
232 msgid "User:"
252 msgid "User:"
233 msgstr "Пользователь:"
253 msgstr "Пользователь:"
234
254
235 #: templates/boards/settings.html:15
255 #: templates/boards/settings.html:15
236 msgid "You are moderator."
256 msgid "You are moderator."
237 msgstr "Вы модератор."
257 msgstr "Вы модератор."
238
258
239 #: templates/boards/settings.html:18
259 #: templates/boards/settings.html:18
240 msgid "Posts:"
260 msgid "Posts:"
241 msgstr "Сообщений:"
261 msgstr "Сообщений:"
242
262
243 #: templates/boards/settings.html:19
263 #: templates/boards/settings.html:19
244 msgid "First access:"
264 msgid "First access:"
245 msgstr "Первый доступ:"
265 msgstr "Первый доступ:"
246
266
247 #: templates/boards/settings.html:21
267 #: templates/boards/settings.html:21
248 msgid "Last access:"
268 msgid "Last access:"
249 msgstr "Последний доступ: "
269 msgstr "Последний доступ: "
250
270
251 #: templates/boards/settings.html:30
271 #: templates/boards/settings.html:30
252 msgid "Save"
272 msgid "Save"
253 msgstr "Сохранить"
273 msgstr "Сохранить"
254
274
255 #: templates/boards/tags.html:17
275 #: templates/boards/tags.html:17
256 msgid "threads"
276 msgid "threads"
257 msgstr "тем"
277 msgstr "тем"
258
278
259 #: templates/boards/tags.html:28
279 #: templates/boards/tags.html:28
260 msgid "No tags found."
280 msgid "No tags found."
261 msgstr "Теги не найдены."
281 msgstr "Теги не найдены."
262
282
263 #: templates/boards/thread.html:79
283 #: templates/boards/thread.html:79
264 msgid "Reply to thread"
284 msgid "Reply to thread"
265 msgstr "Ответить в тему"
285 msgstr "Ответить в тему"
266
286
267 #: templates/boards/thread.html:137
287 #: templates/boards/thread.html:137
268 msgid "Last update: "
288 msgid "Last update: "
269 msgstr "Последнее обновление: "
289 msgstr "Последнее обновление: "
270
290
271 #: templates/boards/staticpages/banned.html:6
291 #: templates/boards/staticpages/banned.html:6
272 msgid "Banned"
292 msgid "Banned"
273 msgstr "Заблокирован"
293 msgstr "Заблокирован"
274
294
275 #: templates/boards/staticpages/banned.html:11
295 #: templates/boards/staticpages/banned.html:11
276 msgid "Your IP address has been banned. Contact the administrator"
296 msgid "Your IP address has been banned. Contact the administrator"
277 msgstr "Ваш IP адрес был заблокирован. Свяжитесь с администратором"
297 msgstr "Ваш IP адрес был заблокирован. Свяжитесь с администратором"
278
298
279 #: templates/boards/staticpages/help.html:6
299 #: templates/boards/staticpages/help.html:6
280 #: templates/boards/staticpages/help.html:10
300 #: templates/boards/staticpages/help.html:10
281 msgid "Syntax"
301 msgid "Syntax"
282 msgstr "Синтаксис"
302 msgstr "Синтаксис"
283
303
284 #: templates/boards/staticpages/help.html:11
304 #: templates/boards/staticpages/help.html:11
285 msgid "2 line breaks for a new line."
305 msgid "2 line breaks for a new line."
286 msgstr "2 перевода строки создают новый абзац."
306 msgstr "2 перевода строки создают новый абзац."
287
307
288 #: templates/boards/staticpages/help.html:12
308 #: templates/boards/staticpages/help.html:12
289 msgid "Italic text"
309 msgid "Italic text"
290 msgstr "Курсивный текст"
310 msgstr "Курсивный текст"
291
311
292 #: templates/boards/staticpages/help.html:13
312 #: templates/boards/staticpages/help.html:13
293 msgid "Bold text"
313 msgid "Bold text"
294 msgstr "Полужирный текст"
314 msgstr "Полужирный текст"
295
315
296 #: templates/boards/staticpages/help.html:14
316 #: templates/boards/staticpages/help.html:14
297 msgid "Spoiler"
317 msgid "Spoiler"
298 msgstr "Спойлер"
318 msgstr "Спойлер"
299
319
300 #: templates/boards/staticpages/help.html:15
320 #: templates/boards/staticpages/help.html:15
301 msgid "Comment"
321 msgid "Comment"
302 msgstr "Комментарий"
322 msgstr "Комментарий"
303
323
304 #: templates/boards/staticpages/help.html:16
324 #: templates/boards/staticpages/help.html:16
305 msgid "Quote"
325 msgid "Quote"
306 msgstr "Цитата"
326 msgstr "Цитата"
307
327
308 #: templates/boards/staticpages/help.html:17
328 #: templates/boards/staticpages/help.html:17
309 msgid "Link to a post"
329 msgid "Link to a post"
310 msgstr "Ссылка на сообщение"
330 msgstr "Ссылка на сообщение"
311
331
312 #~ msgid "Remove"
332 #~ msgid "Remove"
313 #~ msgstr "Удалить"
333 #~ msgstr "Удалить"
314
334
315 #~ msgid "Add"
335 #~ msgid "Add"
316 #~ msgstr "Добавить"
336 #~ msgstr "Добавить"
317
337
318 #~ msgid "Basic markdown syntax."
338 #~ msgid "Basic markdown syntax."
319 #~ msgstr "Базовый синтаксис markdown."
339 #~ msgstr "Базовый синтаксис markdown."
320
340
321 #~ msgid "Example: "
341 #~ msgid "Example: "
322 #~ msgstr "Пример: "
342 #~ msgstr "Пример: "
323
343
324 #~ msgid "italic"
325 #~ msgstr "курсив"
326
327 #~ msgid "bold"
328 #~ msgstr "полужирный"
329
330 #~ msgid "tags"
344 #~ msgid "tags"
331 #~ msgstr "тегов"
345 #~ msgstr "тегов"
332
346
333 #~ msgid "Get!"
347 #~ msgid "Get!"
334 #~ msgstr "Гет!"
348 #~ msgstr "Гет!"
335
349
336 #~ msgid "View"
350 #~ msgid "View"
337 #~ msgstr "Просмотр"
351 #~ msgstr "Просмотр"
338
352
339 #~ msgid "gets"
353 #~ msgid "gets"
340 #~ msgstr "гетов"
354 #~ msgstr "гетов"
@@ -1,206 +1,206 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>{% trans 'Tag: ' %}{{ tag.name }}
19 <h2>{% trans 'Tag: ' %}{{ 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="fancy"
41 <a class="fancy"
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="{% trans 'Post image' %}"
44 alt="{% trans 'Post image' %}"
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">{% trans 'Tags' %}:
77 <span class="tags">{% trans '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 </div>
86 </div>
87 {% if thread.thread.get_last_replies.exists %}
87 {% if thread.thread.get_last_replies.exists %}
88 <div class="last-replies">
88 <div class="last-replies">
89 {% for post in thread.thread.get_last_replies %}
89 {% for post in thread.thread.get_last_replies %}
90 {% if thread.bumpable %}
90 {% if thread.bumpable %}
91 <div class="post" id="{{ post.id }}">
91 <div class="post" id="{{ post.id }}">
92 {% else %}
92 {% else %}
93 <div class="post dead_post" id="{{ post.id }}">
93 <div class="post dead_post" id="{{ post.id }}">
94 {% endif %}
94 {% endif %}
95 {% if post.image %}
95 {% if post.image %}
96 <div class="image">
96 <div class="image">
97 <a class="fancy"
97 <a class="fancy"
98 href="{{ post.image.url }}"><img
98 href="{{ post.image.url }}"><img
99 src=" {{ post.image.url_200x150 }}"
99 src=" {{ post.image.url_200x150 }}"
100 alt="{% trans 'Post image' %}"
100 alt="{% trans 'Post image' %}"
101 data-width="{{ post.image_width }}"
101 data-width="{{ post.image_width }}"
102 data-height="{{ post.image_height }}"/>
102 data-height="{{ post.image_height }}"/>
103 </a>
103 </a>
104 </div>
104 </div>
105 {% endif %}
105 {% endif %}
106 <div class="message">
106 <div class="message">
107 <div class="post-info">
107 <div class="post-info">
108 <span class="title">{{ post.title }}</span>
108 <span class="title">{{ post.title }}</span>
109 <a class="post_id" href="
109 <a class="post_id" href="
110 {% url 'thread' thread.thread.id %}#{{ post.id }}">
110 {% url 'thread' thread.thread.id %}#{{ post.id }}">
111 (#{{ post.id }})</a>
111 (#{{ post.id }})</a>
112 [{{ post.pub_time }}]
112 [{{ post.pub_time }}]
113 </div>
113 </div>
114 {% autoescape off %}
114 {% autoescape off %}
115 {{ post.text.rendered|truncatewords_html:50 }}
115 {{ post.text.rendered|truncatewords_html:50 }}
116 {% endautoescape %}
116 {% endautoescape %}
117 </div>
117 </div>
118 </div>
118 </div>
119 {% endfor %}
119 {% endfor %}
120 </div>
120 </div>
121 {% endif %}
121 {% endif %}
122 </div>
122 </div>
123 {% endfor %}
123 {% endfor %}
124 {% else %}
124 {% else %}
125 <div class="post">
125 <div class="post">
126 {% trans 'No threads exist. Create the first one!' %}</div>
126 {% trans 'No threads exist. Create the first one!' %}</div>
127 {% endif %}
127 {% endif %}
128
128
129 <form enctype="multipart/form-data" method="post">{% csrf_token %}
129 <form enctype="multipart/form-data" method="post">{% csrf_token %}
130 <div class="post-form-w">
130 <div class="post-form-w">
131
131
132 <div class="form-title">{% trans "Create new thread" %}</div>
132 <div class="form-title">{% trans "Create new thread" %}</div>
133 <div class="post-form">
133 <div class="post-form">
134 <div class="form-row">
134 <div class="form-row">
135 <div class="form-label">{% trans 'Title' %}</div>
135 <div class="form-label">{% trans 'Title' %}</div>
136 <div class="form-input">{{ form.title }}</div>
136 <div class="form-input">{{ form.title }}</div>
137 <div class="form-errors">{{ form.title.errors }}</div>
137 <div class="form-errors">{{ form.title.errors }}</div>
138 </div>
138 </div>
139 <div class="form-row">
139 <div class="form-row">
140 <div class="form-label">{% trans 'Formatting' %}</div>
140 <div class="form-label">{% trans 'Formatting' %}</div>
141 <div class="form-input" id="mark_panel">
141 <div class="form-input" id="mark_panel">
142 <span class="mark_btn" id="quote"><span class="quote">&gt;quote</span></span>
142 <span class="mark_btn" id="quote"><span class="quote">&gt;{% trans 'quote' %}</span></span>
143 <span class="mark_btn" id="italic"><i>italic</i></span>
143 <span class="mark_btn" id="italic"><i>{% trans 'italic' %}</i></span>
144 <span class="mark_btn" id="bold"><b>bold</b></span>
144 <span class="mark_btn" id="bold"><b>{% trans 'bold' %}</b></span>
145 <span class="mark_btn" id="spoiler"><span class="spoiler">spoiler</span></span>
145 <span class="mark_btn" id="spoiler"><span class="spoiler">{% trans 'spoiler' %}</span></span>
146 <span class="mark_btn" id="comment"><span class="comment">//comment</span></span>
146 <span class="mark_btn" id="comment"><span class="comment">// {% trans 'comment' %}</span></span>
147 </div>
147 </div>
148 </div>
148 </div>
149 <div class="form-row">
149 <div class="form-row">
150 <div class="form-label">{% trans 'Text' %}</div>
150 <div class="form-label">{% trans 'Text' %}</div>
151 <div class="form-input">{{ form.text }}</div>
151 <div class="form-input">{{ form.text }}</div>
152 <div class="form-errors">{{ form.text.errors }}</div>
152 <div class="form-errors">{{ form.text.errors }}</div>
153 </div>
153 </div>
154 <div class="form-row">
154 <div class="form-row">
155 <div class="form-label">{% trans 'Image' %}</div>
155 <div class="form-label">{% trans 'Image' %}</div>
156 <div class="form-input">{{ form.image }}</div>
156 <div class="form-input">{{ form.image }}</div>
157 <div class="form-errors">{{ form.image.errors }}</div>
157 <div class="form-errors">{{ form.image.errors }}</div>
158 </div>
158 </div>
159 <div class="form-row">
159 <div class="form-row">
160 <div class="form-label">{% trans 'Tags' %}</div>
160 <div class="form-label">{% trans 'Tags' %}</div>
161 <div class="form-input">{{ form.tags }}</div>
161 <div class="form-input">{{ form.tags }}</div>
162 <div class="form-errors">{{ form.tags.errors }}</div>
162 <div class="form-errors">{{ form.tags.errors }}</div>
163 </div>
163 </div>
164 <div class="form-row form-email">
164 <div class="form-row form-email">
165 <div class="form-label">{% trans 'e-mail' %}</div>
165 <div class="form-label">{% trans 'e-mail' %}</div>
166 <div class="form-input">{{ form.email }}</div>
166 <div class="form-input">{{ form.email }}</div>
167 <div class="form-errors">{{ form.email.errors }}</div>
167 <div class="form-errors">{{ form.email.errors }}</div>
168 </div>
168 </div>
169 <div class="form-row">
169 <div class="form-row">
170 {{ form.captcha }}
170 {{ form.captcha }}
171 <div class="form-errors">{{ form.captcha.errors }}</div>
171 <div class="form-errors">{{ form.captcha.errors }}</div>
172 </div>
172 </div>
173 <div class="form-row">
173 <div class="form-row">
174 <div class="form-errors">{{ form.other.errors }}</div>
174 <div class="form-errors">{{ form.other.errors }}</div>
175 </div>
175 </div>
176 </div>
176 </div>
177 <div class="form-submit">
177 <div class="form-submit">
178 <input type="submit" value="{% trans "Post" %}"/></div>
178 <input type="submit" value="{% trans "Post" %}"/></div>
179 <div>
179 <div>
180 {% trans 'Tags must be delimited by spaces. Text or image is required.' %}
180 {% trans 'Tags must be delimited by spaces. Text or image is required.' %}
181 </div>
181 </div>
182 <div><a href="{% url "staticpage" name="help" %}">
182 <div><a href="{% url "staticpage" name="help" %}">
183 {% trans 'Text syntax' %}</a></div>
183 {% trans 'Text syntax' %}</a></div>
184 </div>
184 </div>
185 </form>
185 </form>
186
186
187 {% endblock %}
187 {% endblock %}
188
188
189 {% block metapanel %}
189 {% block metapanel %}
190
190
191 <span class="metapanel">
191 <span class="metapanel">
192 <b><a href="{% url "authors" %}">Neboard</a> 1.2</b>
192 <b><a href="{% url "authors" %}">Neboard</a> 1.2</b>
193 {% trans "Pages:" %}
193 {% trans "Pages:" %}
194 {% for page in pages %}
194 {% for page in pages %}
195 [<a href="
195 [<a href="
196 {% if tag %}
196 {% if tag %}
197 {% url "tag" tag_name=tag page=page %}
197 {% url "tag" tag_name=tag page=page %}
198 {% else %}
198 {% else %}
199 {% url "index" page=page %}
199 {% url "index" page=page %}
200 {% endif %}
200 {% endif %}
201 ">{{ page }}</a>]
201 ">{{ page }}</a>]
202 {% endfor %}
202 {% endfor %}
203 [<a href="rss/">RSS</a>]
203 [<a href="rss/">RSS</a>]
204 </span>
204 </span>
205
205
206 {% endblock %}
206 {% endblock %}
@@ -1,142 +1,142 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 <title>Neboard - {{ posts.0.get_title }}</title>
8 <title>Neboard - {{ posts.0.get_title }}</title>
9 {% endblock %}
9 {% endblock %}
10
10
11 {% block content %}
11 {% block content %}
12 {% get_current_language as LANGUAGE_CODE %}
12 {% get_current_language as LANGUAGE_CODE %}
13
13
14 <script src="{{ STATIC_URL }}js/thread.js"></script>
14 <script src="{{ STATIC_URL }}js/thread.js"></script>
15
15
16 {% if posts %}
16 {% if posts %}
17 {% cache 600 thread_view posts.0.last_edit_time moderator LANGUAGE_CODE %}
17 {% cache 600 thread_view posts.0.last_edit_time moderator LANGUAGE_CODE %}
18 <div id="posts">
18 <div id="posts">
19 {% for post in posts %}
19 {% for post in posts %}
20 {% if bumpable %}
20 {% if bumpable %}
21 <div class="post" id="{{ post.id }}">
21 <div class="post" id="{{ post.id }}">
22 {% else %}
22 {% else %}
23 <div class="post dead_post" id="{{ post.id }}">
23 <div class="post dead_post" id="{{ post.id }}">
24 {% endif %}
24 {% endif %}
25 {% if post.image %}
25 {% if post.image %}
26 <div class="image">
26 <div class="image">
27 <a
27 <a
28 class="fancy"
28 class="fancy"
29 href="{{ post.image.url }}"><img
29 href="{{ post.image.url }}"><img
30 src="{{ post.image.url_200x150 }}"
30 src="{{ post.image.url_200x150 }}"
31 alt="{% trans 'Post image' %}"v
31 alt="{% trans 'Post image' %}"v
32 data-width="{{ post.image_width }}"
32 data-width="{{ post.image_width }}"
33 data-height="{{ post.image_height }}"/>
33 data-height="{{ post.image_height }}"/>
34 </a>
34 </a>
35 </div>
35 </div>
36 {% endif %}
36 {% endif %}
37 <div class="message">
37 <div class="message">
38 <div class="post-info">
38 <div class="post-info">
39 <span class="title">{{ post.title }}</span>
39 <span class="title">{{ post.title }}</span>
40 <a class="post_id" href="#{{ post.id }}">
40 <a class="post_id" href="#{{ post.id }}">
41 (#{{ post.id }})</a>
41 (#{{ post.id }})</a>
42 [{{ post.pub_time }}]
42 [{{ post.pub_time }}]
43 [<a href="#" onclick="javascript:addQuickReply('{{ post.id }}')
43 [<a href="#" onclick="javascript:addQuickReply('{{ post.id }}')
44 ; return false;">&gt;&gt;</a>]
44 ; return false;">&gt;&gt;</a>]
45
45
46 {% if moderator %}
46 {% if moderator %}
47 <span class="moderator_info">
47 <span class="moderator_info">
48 [<a href="{% url 'delete' post_id=post.id %}"
48 [<a href="{% url 'delete' post_id=post.id %}"
49 >{% trans 'Delete' %}</a>]
49 >{% trans 'Delete' %}</a>]
50 ({{ post.poster_ip }})
50 ({{ post.poster_ip }})
51 [<a href="{% url 'ban' post_id=post.id %}?next={{ request.path }}"
51 [<a href="{% url 'ban' post_id=post.id %}?next={{ request.path }}"
52 >{% trans 'Ban IP' %}</a>]
52 >{% trans 'Ban IP' %}</a>]
53 </span>
53 </span>
54 {% endif %}
54 {% endif %}
55 </div>
55 </div>
56 {% autoescape off %}
56 {% autoescape off %}
57 {{ post.text.rendered }}
57 {{ post.text.rendered }}
58 {% endautoescape %}
58 {% endautoescape %}
59 </div>
59 </div>
60 {% if post.id == posts.0.id %}
60 {% if post.id == posts.0.id %}
61 <div class="metadata">
61 <div class="metadata">
62 <span class="tags">{% trans 'Tags' %}:
62 <span class="tags">{% trans 'Tags' %}:
63 {% for tag in post.tags.all %}
63 {% for tag in post.tags.all %}
64 <a class="tag" href="{% url 'tag' tag.name %}">
64 <a class="tag" href="{% url 'tag' tag.name %}">
65 {{ tag.name }}</a>
65 {{ tag.name }}</a>
66 {% endfor %}
66 {% endfor %}
67 </span>
67 </span>
68 </div>
68 </div>
69 {% endif %}
69 {% endif %}
70 </div>
70 </div>
71 {% endfor %}
71 {% endfor %}
72 </div>
72 </div>
73 {% endcache %}
73 {% endcache %}
74 {% endif %}
74 {% endif %}
75
75
76 <form id="form" enctype="multipart/form-data" method="post"
76 <form id="form" enctype="multipart/form-data" method="post"
77 >{% csrf_token %}
77 >{% csrf_token %}
78 <div class="post-form-w">
78 <div class="post-form-w">
79 <div class="form-title">{% trans "Reply to thread" %} #{{ posts.0.id }}</div>
79 <div class="form-title">{% trans "Reply to thread" %} #{{ posts.0.id }}</div>
80 <div class="post-form">
80 <div class="post-form">
81 <div class="form-row">
81 <div class="form-row">
82 <div class="form-label">{% trans 'Title' %}</div>
82 <div class="form-label">{% trans 'Title' %}</div>
83 <div class="form-input">{{ form.title }}</div>
83 <div class="form-input">{{ form.title }}</div>
84 <div class="form-errors">{{ form.title.errors }}</div>
84 <div class="form-errors">{{ form.title.errors }}</div>
85 </div>
85 </div>
86 <div class="form-row">
86 <div class="form-row">
87 <div class="form-label">{% trans 'Formatting' %}</div>
87 <div class="form-label">{% trans 'Formatting' %}</div>
88 <div class="form-input" id="mark_panel">
88 <div class="form-input" id="mark_panel">
89 <span class="mark_btn" id="quote"><span class="quote">&gt;quote</span></span>
89 <span class="mark_btn" id="quote"><span class="quote">&gt;{% trans 'quote' %}</span></span>
90 <span class="mark_btn" id="italic"><i>italic</i></span>
90 <span class="mark_btn" id="italic"><i>{% trans 'italic' %}</i></span>
91 <span class="mark_btn" id="bold"><b>bold</b></span>
91 <span class="mark_btn" id="bold"><b>{% trans 'bold' %}</b></span>
92 <span class="mark_btn" id="spoiler"><span class="spoiler">spoiler</span></span>
92 <span class="mark_btn" id="spoiler"><span class="spoiler">{% trans 'spoiler' %}</span></span>
93 <span class="mark_btn" id="comment"><span class="comment">//comment</span></span>
93 <span class="mark_btn" id="comment"><span class="comment">// {% trans 'comment' %}</span></span>
94 </div>
94 </div>
95 </div>
95 </div>
96 <div class="form-row">
96 <div class="form-row">
97 <div class="form-label">{% trans 'Text' %}</div>
97 <div class="form-label">{% trans 'Text' %}</div>
98 <div class="form-input">{{ form.text }}</div>
98 <div class="form-input">{{ form.text }}</div>
99 <div class="form-errors">{{ form.text.errors }}</div>
99 <div class="form-errors">{{ form.text.errors }}</div>
100 </div>
100 </div>
101 <div class="form-row">
101 <div class="form-row">
102 <div class="form-label">{% trans 'Image' %}</div>
102 <div class="form-label">{% trans 'Image' %}</div>
103 <div class="form-input">{{ form.image }}</div>
103 <div class="form-input">{{ form.image }}</div>
104 <div class="form-errors">{{ form.image.errors }}</div>
104 <div class="form-errors">{{ form.image.errors }}</div>
105 </div>
105 </div>
106 <div class="form-row form-email">
106 <div class="form-row form-email">
107 <div class="form-label">{% trans 'e-mail' %}</div>
107 <div class="form-label">{% trans 'e-mail' %}</div>
108 <div class="form-input">{{ form.email }}</div>
108 <div class="form-input">{{ form.email }}</div>
109 <div class="form-errors">{{ form.email.errors }}</div>
109 <div class="form-errors">{{ form.email.errors }}</div>
110 </div>
110 </div>
111 <div class="form-row">
111 <div class="form-row">
112 {{ form.captcha }}
112 {{ form.captcha }}
113 <div class="form-errors">{{ form.captcha.errors }}</div>
113 <div class="form-errors">{{ form.captcha.errors }}</div>
114 </div>
114 </div>
115 <div class="form-row">
115 <div class="form-row">
116 <div class="form-errors">{{ form.other.errors }}</div>
116 <div class="form-errors">{{ form.other.errors }}</div>
117 </div>
117 </div>
118 </div>
118 </div>
119
119
120 <div class="form-submit"><input type="submit"
120 <div class="form-submit"><input type="submit"
121 value="{% trans "Post" %}"/></div>
121 value="{% trans "Post" %}"/></div>
122 <div><a href="{% url "staticpage" name="help" %}">
122 <div><a href="{% url "staticpage" name="help" %}">
123 {% trans 'Text syntax' %}</a></div>
123 {% trans 'Text syntax' %}</a></div>
124 </div>
124 </div>
125 </form>
125 </form>
126
126
127 {% endblock %}
127 {% endblock %}
128
128
129 {% block metapanel %}
129 {% block metapanel %}
130
130
131 {% get_current_language as LANGUAGE_CODE %}
131 {% get_current_language as LANGUAGE_CODE %}
132
132
133 <span class="metapanel">
133 <span class="metapanel">
134 {% cache 600 thread_meta posts.0.last_edit_time moderator LANGUAGE_CODE %}
134 {% cache 600 thread_meta posts.0.last_edit_time moderator LANGUAGE_CODE %}
135 {{ posts.0.get_reply_count }} {% trans 'replies' %},
135 {{ posts.0.get_reply_count }} {% trans 'replies' %},
136 {{ posts.0.get_images_count }} {% trans 'images' %}.
136 {{ posts.0.get_images_count }} {% trans 'images' %}.
137 {% trans 'Last update: ' %}{{ posts.0.last_edit_time }}
137 {% trans 'Last update: ' %}{{ posts.0.last_edit_time }}
138 [<a href="rss/">RSS</a>]
138 [<a href="rss/">RSS</a>]
139 {% endcache %}
139 {% endcache %}
140 </span>
140 </span>
141
141
142 {% endblock %}
142 {% endblock %}
General Comments 0
You need to be logged in to leave comments. Login now