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