Show More
|
1 | NO CONTENT: modified file, binary diff hidden |
@@ -1,381 +1,379 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-1 |
|
|
10 | "POT-Creation-Date: 2013-12-24 20:39+0200\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 | #: forms.py:48 templates/boards/posting_general.html:209 | |
|
38 | #: templates/boards/thread.html:101 | |
|
37 | #: forms.py:72 | |
|
39 | 38 | msgid "Title" |
|
40 | 39 | msgstr "Заголовок" |
|
41 | 40 | |
|
42 | #: forms.py:50 templates/boards/posting_general.html:224 | |
|
43 | #: templates/boards/thread.html:116 | |
|
41 | #: forms.py:74 | |
|
44 | 42 | msgid "Text" |
|
45 | 43 | msgstr "Текст" |
|
46 | 44 | |
|
47 | #: forms.py:51 templates/boards/posting_general.html:229 | |
|
48 | #: templates/boards/thread.html:121 | |
|
45 | #: forms.py:75 | |
|
49 | 46 | msgid "Image" |
|
50 | 47 | msgstr "Изображение" |
|
51 | 48 | |
|
52 | #: forms.py:54 templates/boards/posting_general.html:239 | |
|
53 | #: templates/boards/thread.html:126 | |
|
49 | #: forms.py:78 | |
|
54 | 50 | msgid "e-mail" |
|
55 | 51 | msgstr "" |
|
56 | 52 | |
|
57 |
#: forms.py: |
|
|
53 | #: forms.py:89 | |
|
58 | 54 | #, python-format |
|
59 | 55 | msgid "Title must have less than %s characters" |
|
60 | 56 | msgstr "Заголовок должен иметь меньше %s символов" |
|
61 | 57 | |
|
62 |
#: forms.py: |
|
|
58 | #: forms.py:98 | |
|
63 | 59 | #, python-format |
|
64 | 60 | msgid "Text must have less than %s characters" |
|
65 | 61 | msgstr "Текст должен быть короче %s символов" |
|
66 | 62 | |
|
67 |
#: forms.py: |
|
|
63 | #: forms.py:109 | |
|
68 | 64 | #, python-format |
|
69 | 65 | msgid "Image must be less than %s bytes" |
|
70 | 66 | msgstr "Изображение должно быть менее %s байт" |
|
71 | 67 | |
|
72 |
#: forms.py:1 |
|
|
68 | #: forms.py:136 | |
|
73 | 69 | msgid "Either text or image must be entered." |
|
74 | 70 | msgstr "Текст или картинка должны быть введены." |
|
75 | 71 | |
|
76 |
#: forms.py:1 |
|
|
72 | #: forms.py:149 | |
|
77 | 73 | #, python-format |
|
78 | 74 | msgid "Wait %s seconds after last posting" |
|
79 | 75 | msgstr "Подождите %s секунд после последнего постинга" |
|
80 | 76 | |
|
81 |
#: forms.py:13 |
|
|
82 | #: templates/boards/posting_general.html:234 templates/boards/tags.html:6 | |
|
77 | #: forms.py:163 templates/boards/post.html:61 templates/boards/tags.html:6 | |
|
83 | 78 | #: templates/boards/rss/post.html:10 |
|
84 | 79 | msgid "Tags" |
|
85 | 80 | msgstr "Теги" |
|
86 | 81 | |
|
87 |
#: forms.py:1 |
|
|
82 | #: forms.py:171 | |
|
88 | 83 | msgid "Inappropriate characters in tags." |
|
89 | 84 | msgstr "Недопустимые символы в тегах." |
|
90 | 85 | |
|
91 |
#: forms.py:1 |
|
|
86 | #: forms.py:199 forms.py:220 | |
|
92 | 87 | msgid "Captcha validation failed" |
|
93 | 88 | msgstr "Проверка капчи провалена" |
|
94 | 89 | |
|
95 |
#: forms.py:2 |
|
|
90 | #: forms.py:226 | |
|
96 | 91 | msgid "Theme" |
|
97 | 92 | msgstr "Тема" |
|
98 | 93 | |
|
99 |
#: forms.py:2 |
|
|
94 | #: forms.py:231 | |
|
100 | 95 | msgid "Enable moderation panel" |
|
101 | 96 | msgstr "Включить панель модерации" |
|
102 | 97 | |
|
103 |
#: forms.py:2 |
|
|
98 | #: forms.py:246 | |
|
104 | 99 | msgid "No such user found" |
|
105 | 100 | msgstr "Данный пользователь не найден" |
|
106 | 101 | |
|
107 |
#: forms.py:2 |
|
|
102 | #: forms.py:260 | |
|
108 | 103 | #, python-format |
|
109 | 104 | msgid "Wait %s minutes after last login" |
|
110 | 105 | msgstr "Подождите %s минут после последнего входа" |
|
111 | 106 | |
|
112 | 107 | #: templates/boards/404.html:6 |
|
113 | 108 | msgid "Not found" |
|
114 | 109 | msgstr "Не найдено" |
|
115 | 110 | |
|
116 | 111 | #: templates/boards/404.html:12 |
|
117 | 112 | msgid "This page does not exist" |
|
118 | 113 | msgstr "Этой страницы не существует" |
|
119 | 114 | |
|
120 | 115 | #: templates/boards/authors.html:6 templates/boards/authors.html.py:12 |
|
121 | 116 | msgid "Authors" |
|
122 | 117 | msgstr "Авторы" |
|
123 | 118 | |
|
124 | 119 | #: templates/boards/authors.html:25 |
|
125 | 120 | msgid "Distributed under the" |
|
126 | 121 | msgstr "Распространяется под" |
|
127 | 122 | |
|
128 | 123 | #: templates/boards/authors.html:27 |
|
129 | 124 | msgid "license" |
|
130 | 125 | msgstr "лицензией" |
|
131 | 126 | |
|
132 | 127 | #: templates/boards/authors.html:29 |
|
133 | 128 | msgid "Repository" |
|
134 | 129 | msgstr "Репозиторий" |
|
135 | 130 | |
|
136 | 131 | #: templates/boards/base.html:14 |
|
137 | 132 | msgid "Feed" |
|
138 | 133 | msgstr "Лента" |
|
139 | 134 | |
|
140 |
#: templates/boards/base.html:3 |
|
|
135 | #: templates/boards/base.html:31 | |
|
141 | 136 | msgid "All threads" |
|
142 | 137 | msgstr "Все темы" |
|
143 | 138 | |
|
144 |
#: templates/boards/base.html: |
|
|
139 | #: templates/boards/base.html:36 | |
|
145 | 140 | msgid "Tag management" |
|
146 | 141 | msgstr "Управление тегами" |
|
147 | 142 | |
|
148 |
#: templates/boards/base.html: |
|
|
143 | #: templates/boards/base.html:38 | |
|
149 | 144 | msgid "Settings" |
|
150 | 145 | msgstr "Настройки" |
|
151 | 146 | |
|
152 | 147 | #: templates/boards/base.html:50 templates/boards/login.html:6 |
|
153 | 148 | #: templates/boards/login.html.py:21 |
|
154 | 149 | msgid "Login" |
|
155 | 150 | msgstr "Вход" |
|
156 | 151 | |
|
157 | 152 | #: templates/boards/base.html:52 |
|
158 | 153 | #, python-format |
|
159 | 154 | msgid "Speed: %(ppd)s posts per day" |
|
160 | 155 | msgstr "Скорость: %(ppd)s сообщений в день" |
|
161 | 156 | |
|
162 | 157 | #: templates/boards/base.html:54 |
|
163 | 158 | msgid "Up" |
|
164 | 159 | msgstr "Вверх" |
|
165 | 160 | |
|
166 | 161 | #: templates/boards/login.html:15 |
|
167 | 162 | msgid "User ID" |
|
168 | 163 | msgstr "ID пользователя" |
|
169 | 164 | |
|
170 | 165 | #: templates/boards/login.html:24 |
|
171 | 166 | msgid "Insert your user id above" |
|
172 | 167 | msgstr "Вставьте свой ID пользователя выше" |
|
173 | 168 | |
|
174 |
#: templates/boards/post.html:3 |
|
|
175 |
#: templates/boards/thread.html: |
|
|
169 | #: templates/boards/post.html:35 templates/boards/posting_general.html:103 | |
|
170 | #: templates/boards/thread.html:68 | |
|
176 | 171 | msgid "Delete" |
|
177 | 172 | msgstr "Удалить" |
|
178 | 173 | |
|
179 |
#: templates/boards/post.html:3 |
|
|
180 |
#: templates/boards/thread.html: |
|
|
174 | #: templates/boards/post.html:38 templates/boards/posting_general.html:107 | |
|
175 | #: templates/boards/thread.html:71 | |
|
181 | 176 | msgid "Ban IP" |
|
182 | 177 | msgstr "Заблокировать IP" |
|
183 | 178 | |
|
184 |
#: templates/boards/post.html:5 |
|
|
185 |
#: templates/boards/posting_general.html:1 |
|
|
179 | #: templates/boards/post.html:51 templates/boards/posting_general.html:116 | |
|
180 | #: templates/boards/posting_general.html:180 templates/boards/thread.html:80 | |
|
186 | 181 | msgid "Replies" |
|
187 | 182 | msgstr "Ответы" |
|
188 | 183 | |
|
189 |
#: templates/boards/posting_general.html:6 |
|
|
184 | #: templates/boards/posting_general.html:64 | |
|
190 | 185 | msgid "Previous page" |
|
191 | 186 | msgstr "Предыдущая страница" |
|
192 | 187 | |
|
193 |
#: templates/boards/posting_general.html:9 |
|
|
188 | #: templates/boards/posting_general.html:97 | |
|
194 | 189 | msgid "Reply" |
|
195 | 190 | msgstr "Ответ" |
|
196 | 191 | |
|
197 |
#: templates/boards/posting_general.html:12 |
|
|
198 | msgid "replies" | |
|
199 | msgstr "ответов" | |
|
200 | ||
|
201 | #: templates/boards/posting_general.html:123 templates/boards/thread.html:155 | |
|
192 | #: templates/boards/posting_general.html:125 templates/boards/thread.html:130 | |
|
193 | #: templates/boards/thread_gallery.html:52 | |
|
202 | 194 | msgid "images" |
|
203 | 195 | msgstr "изображений" |
|
204 | 196 | |
|
205 |
#: templates/boards/posting_general.html:1 |
|
|
197 | #: templates/boards/posting_general.html:142 | |
|
206 | 198 | #, python-format |
|
207 | 199 | msgid "Skipped %(count)s replies. Open thread to see all replies." |
|
208 | 200 | msgstr "Пропущено %(count)s ответов. Откройте тред, чтобы увидеть все ответы." |
|
209 | 201 | |
|
210 |
#: templates/boards/posting_general.html: |
|
|
202 | #: templates/boards/posting_general.html:203 | |
|
211 | 203 | msgid "Next page" |
|
212 | 204 | msgstr "Следующая страница" |
|
213 | 205 | |
|
214 |
#: templates/boards/posting_general.html:20 |
|
|
206 | #: templates/boards/posting_general.html:208 | |
|
215 | 207 | msgid "No threads exist. Create the first one!" |
|
216 | 208 | msgstr "Нет тем. Создайте первую!" |
|
217 | 209 | |
|
218 |
#: templates/boards/posting_general.html:2 |
|
|
210 | #: templates/boards/posting_general.html:214 | |
|
219 | 211 | msgid "Create new thread" |
|
220 | 212 | msgstr "Создать новую тему" |
|
221 | 213 | |
|
222 |
#: templates/boards/posting_general.html:21 |
|
|
223 | msgid "Formatting" | |
|
224 | msgstr "Форматирование" | |
|
225 | ||
|
226 | #: templates/boards/posting_general.html:216 templates/boards/thread.html:108 | |
|
227 | msgid "quote" | |
|
228 | msgstr "цитата" | |
|
229 | ||
|
230 | #: templates/boards/posting_general.html:217 templates/boards/thread.html:109 | |
|
231 | msgid "italic" | |
|
232 | msgstr "курсив" | |
|
233 | ||
|
234 | #: templates/boards/posting_general.html:218 templates/boards/thread.html:110 | |
|
235 | msgid "bold" | |
|
236 | msgstr "полужирный" | |
|
237 | ||
|
238 | #: templates/boards/posting_general.html:219 templates/boards/thread.html:111 | |
|
239 | msgid "spoiler" | |
|
240 | msgstr "спойлер" | |
|
241 | ||
|
242 | #: templates/boards/posting_general.html:220 templates/boards/thread.html:112 | |
|
243 | msgid "comment" | |
|
244 | msgstr "комментарий" | |
|
245 | ||
|
246 | #: templates/boards/posting_general.html:252 templates/boards/thread.html:140 | |
|
214 | #: templates/boards/posting_general.html:218 templates/boards/thread.html:112 | |
|
247 | 215 | msgid "Post" |
|
248 | 216 | msgstr "Отправить" |
|
249 | 217 | |
|
250 |
#: templates/boards/posting_general.html:2 |
|
|
218 | #: templates/boards/posting_general.html:222 | |
|
251 | 219 | msgid "Tags must be delimited by spaces. Text or image is required." |
|
252 | 220 | msgstr "" |
|
253 | 221 | "Теги должны быть разделены пробелами. Текст или изображение обязательны." |
|
254 | 222 | |
|
255 |
#: templates/boards/posting_general.html:25 |
|
|
223 | #: templates/boards/posting_general.html:225 templates/boards/thread.html:116 | |
|
256 | 224 | msgid "Text syntax" |
|
257 | 225 | msgstr "Синтаксис текста" |
|
258 | 226 | |
|
259 |
#: templates/boards/posting_general.html:2 |
|
|
227 | #: templates/boards/posting_general.html:235 | |
|
260 | 228 | msgid "Pages:" |
|
261 | 229 | msgstr "Страницы: " |
|
262 | 230 | |
|
263 | 231 | #: templates/boards/settings.html:14 |
|
264 | 232 | msgid "User:" |
|
265 | 233 | msgstr "Пользователь:" |
|
266 | 234 | |
|
267 | 235 | #: templates/boards/settings.html:16 |
|
268 | 236 | msgid "You are moderator." |
|
269 | 237 | msgstr "Вы модератор." |
|
270 | 238 | |
|
271 | 239 | #: templates/boards/settings.html:19 |
|
272 | 240 | msgid "Posts:" |
|
273 | 241 | msgstr "Сообщений:" |
|
274 | 242 | |
|
275 | 243 | #: templates/boards/settings.html:20 |
|
276 | 244 | msgid "First access:" |
|
277 | 245 | msgstr "Первый доступ:" |
|
278 | 246 | |
|
279 | 247 | #: templates/boards/settings.html:22 |
|
280 | 248 | msgid "Last access:" |
|
281 | 249 | msgstr "Последний доступ: " |
|
282 | 250 | |
|
283 | 251 | #: templates/boards/settings.html:31 |
|
284 | 252 | msgid "Save" |
|
285 | 253 | msgstr "Сохранить" |
|
286 | 254 | |
|
287 | 255 | #: templates/boards/tags.html:24 |
|
288 | 256 | msgid "threads" |
|
289 | 257 | msgstr "тем" |
|
290 | 258 | |
|
291 | 259 | #: templates/boards/tags.html:37 |
|
292 | 260 | msgid "No tags found." |
|
293 | 261 | msgstr "Теги не найдены." |
|
294 | 262 | |
|
295 |
#: templates/boards/thread.html:2 |
|
|
263 | #: templates/boards/thread.html:22 templates/boards/thread_gallery.html:20 | |
|
264 | msgid "Normal mode" | |
|
265 | msgstr "Нормальный режим" | |
|
266 | ||
|
267 | #: templates/boards/thread.html:23 templates/boards/thread_gallery.html:21 | |
|
268 | msgid "Gallery mode" | |
|
269 | msgstr "Режим галереи" | |
|
270 | ||
|
271 | #: templates/boards/thread.html:31 | |
|
296 | 272 | msgid "posts to bumplimit" |
|
297 | 273 | msgstr "сообщений до бамплимита" |
|
298 | 274 | |
|
299 |
#: templates/boards/thread.html: |
|
|
275 | #: templates/boards/thread.html:106 | |
|
300 | 276 | msgid "Reply to thread" |
|
301 | 277 | msgstr "Ответить в тему" |
|
302 | 278 | |
|
303 |
#: templates/boards/thread.html:1 |
|
|
279 | #: templates/boards/thread.html:129 templates/boards/thread_gallery.html:51 | |
|
280 | msgid "replies" | |
|
281 | msgstr "ответов" | |
|
282 | ||
|
283 | #: templates/boards/thread.html:131 templates/boards/thread_gallery.html:53 | |
|
304 | 284 | msgid "Last update: " |
|
305 | 285 | msgstr "Последнее обновление: " |
|
306 | 286 | |
|
307 | 287 | #: templates/boards/rss/post.html:5 |
|
308 | 288 | msgid "Post image" |
|
309 | 289 | msgstr "Изображение сообщения" |
|
310 | 290 | |
|
311 | 291 | #: templates/boards/staticpages/banned.html:6 |
|
312 | 292 | msgid "Banned" |
|
313 | 293 | msgstr "Заблокирован" |
|
314 | 294 | |
|
315 | 295 | #: templates/boards/staticpages/banned.html:11 |
|
316 | 296 | msgid "Your IP address has been banned. Contact the administrator" |
|
317 | 297 | msgstr "Ваш IP адрес был заблокирован. Свяжитесь с администратором" |
|
318 | 298 | |
|
319 | 299 | #: templates/boards/staticpages/help.html:6 |
|
320 | 300 | #: templates/boards/staticpages/help.html:10 |
|
321 | 301 | msgid "Syntax" |
|
322 | 302 | msgstr "Синтаксис" |
|
323 | 303 | |
|
324 | 304 | #: templates/boards/staticpages/help.html:11 |
|
325 | 305 | msgid "2 line breaks for a new line." |
|
326 | 306 | msgstr "2 перевода строки создают новый абзац." |
|
327 | 307 | |
|
328 | 308 | #: templates/boards/staticpages/help.html:12 |
|
329 | 309 | msgid "Italic text" |
|
330 | 310 | msgstr "Курсивный текст" |
|
331 | 311 | |
|
332 | 312 | #: templates/boards/staticpages/help.html:13 |
|
333 | 313 | msgid "Bold text" |
|
334 | 314 | msgstr "Полужирный текст" |
|
335 | 315 | |
|
336 | 316 | #: templates/boards/staticpages/help.html:14 |
|
337 | 317 | msgid "Spoiler" |
|
338 | 318 | msgstr "Спойлер" |
|
339 | 319 | |
|
340 | 320 | #: templates/boards/staticpages/help.html:15 |
|
341 | 321 | msgid "Comment" |
|
342 | 322 | msgstr "Комментарий" |
|
343 | 323 | |
|
344 | 324 | #: templates/boards/staticpages/help.html:16 |
|
345 | 325 | msgid "Quote" |
|
346 | 326 | msgstr "Цитата" |
|
347 | 327 | |
|
348 | 328 | #: templates/boards/staticpages/help.html:17 |
|
349 | 329 | msgid "Link to a post" |
|
350 | 330 | msgstr "Ссылка на сообщение" |
|
351 | 331 | |
|
352 | 332 | #: templates/boards/staticpages/help.html:18 |
|
353 | 333 | msgid "Strikethrough text" |
|
354 | 334 | msgstr "Зачеркнутый текст" |
|
355 | 335 | |
|
336 | #~ msgid "Formatting" | |
|
337 | #~ msgstr "Форматирование" | |
|
338 | ||
|
339 | #~ msgid "quote" | |
|
340 | #~ msgstr "цитата" | |
|
341 | ||
|
342 | #~ msgid "italic" | |
|
343 | #~ msgstr "курсив" | |
|
344 | ||
|
345 | #~ msgid "bold" | |
|
346 | #~ msgstr "полужирный" | |
|
347 | ||
|
348 | #~ msgid "spoiler" | |
|
349 | #~ msgstr "спойлер" | |
|
350 | ||
|
351 | #~ msgid "comment" | |
|
352 | #~ msgstr "комментарий" | |
|
353 | ||
|
356 | 354 | #~ msgid "Tag: " |
|
357 | 355 | #~ msgstr "Тег: " |
|
358 | 356 | |
|
359 | 357 | #~ msgid "Remove" |
|
360 | 358 | #~ msgstr "Удалить" |
|
361 | 359 | |
|
362 | 360 | #~ msgid "Add" |
|
363 | 361 | #~ msgstr "Добавить" |
|
364 | 362 | |
|
365 | 363 | #~ msgid "Basic markdown syntax." |
|
366 | 364 | #~ msgstr "Базовый синтаксис markdown." |
|
367 | 365 | |
|
368 | 366 | #~ msgid "Example: " |
|
369 | 367 | #~ msgstr "Пример: " |
|
370 | 368 | |
|
371 | 369 | #~ msgid "tags" |
|
372 | 370 | #~ msgstr "тегов" |
|
373 | 371 | |
|
374 | 372 | #~ msgid "Get!" |
|
375 | 373 | #~ msgstr "Гет!" |
|
376 | 374 | |
|
377 | 375 | #~ msgid "View" |
|
378 | 376 | #~ msgstr "Просмотр" |
|
379 | 377 | |
|
380 | 378 | #~ msgid "gets" |
|
381 | 379 | #~ msgstr "гетов" |
@@ -1,40 +1,41 b'' | |||
|
1 | 1 | from django.shortcuts import redirect |
|
2 | 2 | from boards import views, utils |
|
3 | 3 | from boards.models import Ban |
|
4 | 4 | from django.utils.html import strip_spaces_between_tags |
|
5 | 5 | from django.conf import settings |
|
6 | 6 | |
|
7 | 7 | RESPONSE_CONTENT_TYPE = 'Content-Type' |
|
8 | 8 | |
|
9 | 9 | TYPE_HTML = 'text/html' |
|
10 | 10 | |
|
11 | 11 | |
|
12 | 12 | class BanMiddleware: |
|
13 | 13 | """ |
|
14 | 14 | This is run before showing the thread. Banned users don't need to see |
|
15 | 15 | anything |
|
16 | 16 | """ |
|
17 | 17 | |
|
18 | 18 | def process_view(self, request, view_func, view_args, view_kwargs): |
|
19 | 19 | |
|
20 | 20 | if view_func != views.you_are_banned: |
|
21 | 21 | ip = utils.get_client_ip(request) |
|
22 | 22 | bans = Ban.objects.filter(ip=ip) |
|
23 | 23 | |
|
24 | 24 | if bans.exists(): |
|
25 | 25 | ban = bans[0] |
|
26 | 26 | if not ban.can_read: |
|
27 | 27 | return redirect(views.you_are_banned) |
|
28 | 28 | |
|
29 | 29 | |
|
30 | 30 | class MinifyHTMLMiddleware(object): |
|
31 | 31 | def process_response(self, request, response): |
|
32 | 32 | try: |
|
33 | 33 | compress_html = settings.COMPRESS_HTML |
|
34 | 34 | except AttributeError: |
|
35 | 35 | compress_html = False |
|
36 | 36 | |
|
37 |
if |
|
|
37 | if RESPONSE_CONTENT_TYPE in response\ | |
|
38 | and TYPE_HTML in response[RESPONSE_CONTENT_TYPE] and compress_html: | |
|
38 | 39 | response.content = strip_spaces_between_tags( |
|
39 | 40 | response.content.strip()) |
|
40 | 41 | return response No newline at end of file |
@@ -1,361 +1,361 b'' | |||
|
1 | 1 | html { |
|
2 | 2 | background: #555; |
|
3 | 3 | color: #ffffff; |
|
4 | 4 | } |
|
5 | 5 | |
|
6 | 6 | #admin_panel { |
|
7 | 7 | background: #FF0000; |
|
8 | 8 | color: #00FF00 |
|
9 | 9 | } |
|
10 | 10 | |
|
11 | 11 | .input_field { |
|
12 | 12 | |
|
13 | 13 | } |
|
14 | 14 | |
|
15 | 15 | .input_field_name { |
|
16 | 16 | |
|
17 | 17 | } |
|
18 | 18 | |
|
19 | 19 | .input_field_error { |
|
20 | 20 | color: #FF0000; |
|
21 | 21 | } |
|
22 | 22 | |
|
23 | 23 | .title { |
|
24 | 24 | font-weight: bold; |
|
25 | 25 | color: #ffcc00; |
|
26 | 26 | font-size: 2ex; |
|
27 | 27 | } |
|
28 | 28 | |
|
29 | 29 | .link, a { |
|
30 | 30 | color: #afdcec; |
|
31 | 31 | } |
|
32 | 32 | |
|
33 | 33 | .block { |
|
34 | 34 | display: inline-block; |
|
35 | 35 | vertical-align: top; |
|
36 | 36 | } |
|
37 | 37 | |
|
38 | 38 | .tag { |
|
39 | 39 | color: #b4cfec; |
|
40 | 40 | } |
|
41 | 41 | |
|
42 | 42 | .post_id { |
|
43 | 43 | color: #fff380; |
|
44 | 44 | } |
|
45 | 45 | |
|
46 | 46 | .post, .dead_post, #posts-table { |
|
47 | 47 | background: #333; |
|
48 | 48 | margin: 5px; |
|
49 | 49 | padding: 10px; |
|
50 | 50 | border: solid 1px #888; |
|
51 | 51 | clear: left; |
|
52 | 52 | word-wrap: break-word; |
|
53 | 53 | } |
|
54 | 54 | |
|
55 | 55 | .metadata { |
|
56 | 56 | padding-top: 5px; |
|
57 | 57 | margin-top: 10px; |
|
58 | 58 | border-top: solid 1px #666; |
|
59 | 59 | font-size: 0.9em; |
|
60 | 60 | color: #ddd; |
|
61 | 61 | } |
|
62 | 62 | |
|
63 | 63 | .navigation_panel, .tag_info { |
|
64 | 64 | background: #444; |
|
65 | 65 | margin: 5px; |
|
66 | 66 | padding: 10px; |
|
67 | 67 | border: solid 1px #888; |
|
68 | 68 | color: #eee; |
|
69 | 69 | } |
|
70 | 70 | |
|
71 | 71 | .navigation_panel .link { |
|
72 | 72 | border-right: 1px solid #fff; |
|
73 | 73 | font-weight: bold; |
|
74 | 74 | margin-right: 1ex; |
|
75 | 75 | padding-right: 1ex; |
|
76 | 76 | } |
|
77 | 77 | .navigation_panel .link:last-child { |
|
78 | 78 | border-left: 1px solid #fff; |
|
79 | 79 | border-right: none; |
|
80 | 80 | float: right; |
|
81 | 81 | margin-left: 1ex; |
|
82 | 82 | margin-right: 0; |
|
83 | 83 | padding-left: 1ex; |
|
84 | 84 | padding-right: 0; |
|
85 | 85 | } |
|
86 | 86 | |
|
87 | 87 | .navigation_panel::after, .post::after { |
|
88 | 88 | clear: both; |
|
89 | 89 | content: "."; |
|
90 | 90 | display: block; |
|
91 | 91 | height: 0; |
|
92 | 92 | line-height: 0; |
|
93 | 93 | visibility: hidden; |
|
94 | 94 | } |
|
95 | 95 | |
|
96 | 96 | p { |
|
97 | 97 | margin-top: .5em; |
|
98 | 98 | margin-bottom: .5em; |
|
99 | 99 | } |
|
100 | 100 | |
|
101 | 101 | .post-form-w { |
|
102 | 102 | display: table; |
|
103 | 103 | background: #333344; |
|
104 | 104 | border: solid 1px #888; |
|
105 | 105 | color: #fff; |
|
106 | 106 | padding: 10px; |
|
107 | 107 | margin: 5px; |
|
108 | 108 | } |
|
109 | 109 | |
|
110 | 110 | .form-row { |
|
111 | 111 | display: table-row; |
|
112 | 112 | } |
|
113 | 113 | |
|
114 | 114 | .form-label, .form-input, .form-errors { |
|
115 | 115 | display: table-cell; |
|
116 | 116 | } |
|
117 | 117 | |
|
118 | 118 | .form-label { |
|
119 | 119 | padding: .25em 1ex .25em 0; |
|
120 | 120 | vertical-align: top; |
|
121 | 121 | } |
|
122 | 122 | |
|
123 | 123 | .form-input { |
|
124 | 124 | padding: .25em 0; |
|
125 | 125 | } |
|
126 | 126 | |
|
127 | 127 | .form-errors { |
|
128 | 128 | font-weight: bolder; |
|
129 | 129 | vertical-align: middle; |
|
130 | 130 | } |
|
131 | 131 | |
|
132 | 132 | .post-form input, .post-form textarea { |
|
133 | 133 | background: #333; |
|
134 | 134 | color: #fff; |
|
135 | 135 | border: solid 1px; |
|
136 | 136 | padding: 0; |
|
137 | 137 | width: 100%; |
|
138 | 138 | font: medium sans; |
|
139 | 139 | } |
|
140 | 140 | |
|
141 | 141 | .form-submit { |
|
142 | 142 | display: table; |
|
143 | 143 | margin-bottom: 1ex; |
|
144 | 144 | } |
|
145 | 145 | |
|
146 | 146 | .form-title { |
|
147 | 147 | font-weight: bold; |
|
148 | 148 | font-size: 2.5ex; |
|
149 | 149 | text-decoration: underline; |
|
150 | 150 | } |
|
151 | 151 | |
|
152 | 152 | input[type="submit"] { |
|
153 | 153 | background: #222; |
|
154 | 154 | border: solid 2px #fff; |
|
155 | 155 | color: #fff; |
|
156 | 156 | padding: 0.5ex; |
|
157 | 157 | } |
|
158 | 158 | |
|
159 | 159 | input[type="submit"]:hover { |
|
160 | 160 | background: #060; |
|
161 | 161 | } |
|
162 | 162 | |
|
163 | 163 | blockquote { |
|
164 | 164 | border-left: solid 2px; |
|
165 | 165 | padding-left: 5px; |
|
166 | 166 | color: #B1FB17; |
|
167 | 167 | margin: 0; |
|
168 | 168 | } |
|
169 | 169 | |
|
170 | 170 | .post > .image { |
|
171 | 171 | float: left; |
|
172 | 172 | margin: 0 1ex .5ex 0; |
|
173 | 173 | min-width: 1px; |
|
174 | 174 | text-align: center; |
|
175 | 175 | display: table-row; |
|
176 | 176 | } |
|
177 | 177 | |
|
178 | 178 | .post > .metadata { |
|
179 | 179 | clear: left; |
|
180 | 180 | } |
|
181 | 181 | |
|
182 | 182 | .get { |
|
183 | 183 | font-weight: bold; |
|
184 | 184 | color: #d55; |
|
185 | 185 | } |
|
186 | 186 | |
|
187 | 187 | * { |
|
188 | 188 | text-decoration: none; |
|
189 | 189 | } |
|
190 | 190 | |
|
191 | 191 | .dead_post { |
|
192 | 192 | background-color: #442222; |
|
193 | 193 | } |
|
194 | 194 | |
|
195 | 195 | .mark_btn { |
|
196 | 196 | border: 1px solid; |
|
197 | 197 | min-width: 2ex; |
|
198 | 198 | padding: 2px 2ex; |
|
199 | 199 | } |
|
200 | 200 | |
|
201 | 201 | .mark_btn:hover { |
|
202 | 202 | background: #555; |
|
203 | 203 | } |
|
204 | 204 | |
|
205 | 205 | .quote { |
|
206 | 206 | color: #92cf38; |
|
207 | 207 | font-style: italic; |
|
208 | 208 | } |
|
209 | 209 | |
|
210 | 210 | .spoiler { |
|
211 | 211 | background: white; |
|
212 | 212 | color: white; |
|
213 | 213 | } |
|
214 | 214 | |
|
215 | 215 | .spoiler:hover { |
|
216 | 216 | color: black; |
|
217 | 217 | } |
|
218 | 218 | |
|
219 | 219 | .comment { |
|
220 | 220 | color: #eb2; |
|
221 | 221 | font-style: italic; |
|
222 | 222 | } |
|
223 | 223 | |
|
224 | 224 | a:hover { |
|
225 | 225 | text-decoration: underline; |
|
226 | 226 | } |
|
227 | 227 | |
|
228 | 228 | .last-replies { |
|
229 | 229 | margin-left: 3ex; |
|
230 | 230 | } |
|
231 | 231 | |
|
232 | 232 | .thread { |
|
233 | 233 | margin-bottom: 3ex; |
|
234 | 234 | } |
|
235 | 235 | |
|
236 | 236 | .post:target { |
|
237 | 237 | border: solid 2px white; |
|
238 | 238 | } |
|
239 | 239 | |
|
240 | 240 | pre{ |
|
241 | 241 | white-space:pre-wrap |
|
242 | 242 | } |
|
243 | 243 | |
|
244 | 244 | li { |
|
245 | 245 | list-style-position: inside; |
|
246 | 246 | } |
|
247 | 247 | |
|
248 | 248 | .fancybox-skin { |
|
249 | 249 | position: relative; |
|
250 | 250 | background-color: #fff; |
|
251 | 251 | color: #ddd; |
|
252 | 252 | text-shadow: none; |
|
253 | 253 | } |
|
254 | 254 | |
|
255 | 255 | .fancybox-image { |
|
256 | 256 | border: 1px solid black; |
|
257 | 257 | } |
|
258 | 258 | |
|
259 | 259 | .image-mode-tab { |
|
260 | 260 | background: #444; |
|
261 | 261 | color: #eee; |
|
262 | 262 | display: table; |
|
263 | 263 | margin: 5px; |
|
264 | 264 | padding: 5px; |
|
265 | 265 | border: 1px solid #888; |
|
266 | 266 | } |
|
267 | 267 | |
|
268 | 268 | .image-mode-tab > label { |
|
269 | 269 | margin: 0 1ex; |
|
270 | 270 | } |
|
271 | 271 | |
|
272 | 272 | .image-mode-tab > label > input { |
|
273 | 273 | margin-right: .5ex; |
|
274 | 274 | } |
|
275 | 275 | |
|
276 | 276 | #posts-table { |
|
277 | 277 | margin: 5px; |
|
278 | 278 | } |
|
279 | 279 | |
|
280 | 280 | .tag_info { |
|
281 | 281 | display: table; |
|
282 | 282 | } |
|
283 | 283 | |
|
284 | 284 | .tag_info > h2 { |
|
285 | 285 | margin: 0; |
|
286 | 286 | } |
|
287 | 287 | |
|
288 | 288 | .post-info { |
|
289 | 289 | color: #ddd; |
|
290 | 290 | } |
|
291 | 291 | |
|
292 | 292 | .moderator_info { |
|
293 | 293 | color: #e99d41; |
|
294 | 294 | border: dashed 1px; |
|
295 | 295 | padding: 3px; |
|
296 | 296 | } |
|
297 | 297 | |
|
298 | 298 | .refmap { |
|
299 | 299 | font-size: 0.9em; |
|
300 | 300 | color: #ccc; |
|
301 | 301 | margin-top: 1em; |
|
302 | 302 | } |
|
303 | 303 | |
|
304 | 304 | .fav { |
|
305 | 305 | color: yellow; |
|
306 | 306 | } |
|
307 | 307 | |
|
308 | 308 | .not_fav { |
|
309 | 309 | color: #ccc; |
|
310 | 310 | } |
|
311 | 311 | |
|
312 | 312 | .role { |
|
313 | 313 | text-decoration: underline; |
|
314 | 314 | } |
|
315 | 315 | |
|
316 | 316 | .form-email { |
|
317 | 317 | display: none; |
|
318 | 318 | } |
|
319 | 319 | |
|
320 | 320 | .footer { |
|
321 | 321 | margin: 5px; |
|
322 | 322 | } |
|
323 | 323 | |
|
324 | 324 | .bar-value { |
|
325 | 325 | background: rgba(50, 55, 164, 0.45); |
|
326 | 326 | font-size: 0.9em; |
|
327 | 327 | height: 1.5em; |
|
328 | 328 | } |
|
329 | 329 | |
|
330 | 330 | .bar-bg { |
|
331 | 331 | position: relative; |
|
332 | 332 | border: solid 1px #888; |
|
333 | 333 | margin: 5px; |
|
334 | 334 | overflow: hidden; |
|
335 | 335 | } |
|
336 | 336 | |
|
337 | 337 | .bar-text { |
|
338 | 338 | padding: 2px; |
|
339 | 339 | position: absolute; |
|
340 | 340 | left: 0; |
|
341 | 341 | top: 0; |
|
342 | 342 | } |
|
343 | 343 | |
|
344 | 344 | .page_link { |
|
345 | 345 | display: table; |
|
346 | 346 | background: #444; |
|
347 | 347 | margin: 5px; |
|
348 | 348 | border: solid 1px #888; |
|
349 | 349 | padding: 5px; |
|
350 | 350 | font-weight: bolder; |
|
351 | 351 | color: #eee; |
|
352 | 352 | } |
|
353 | 353 | |
|
354 | 354 | .skipped_replies { |
|
355 | 355 | margin: 5px; |
|
356 | 356 | } |
|
357 | 357 | |
|
358 | .current_page { | |
|
358 | .current_page, .current_mode { | |
|
359 | 359 | border: solid 1px #afdcec; |
|
360 | 360 | padding: 2px; |
|
361 | 361 | } No newline at end of file |
@@ -1,342 +1,347 b'' | |||
|
1 | 1 | html { |
|
2 | 2 | background: rgb(238, 238, 238); |
|
3 | 3 | color: rgb(51, 51, 51); |
|
4 | 4 | } |
|
5 | 5 | |
|
6 | 6 | #admin_panel { |
|
7 | 7 | background: #FF0000; |
|
8 | 8 | color: #00FF00 |
|
9 | 9 | } |
|
10 | 10 | |
|
11 | 11 | .input_field { |
|
12 | 12 | |
|
13 | 13 | } |
|
14 | 14 | |
|
15 | 15 | .input_field_name { |
|
16 | 16 | |
|
17 | 17 | } |
|
18 | 18 | |
|
19 | 19 | .input_field_error { |
|
20 | 20 | color: #FF0000; |
|
21 | 21 | } |
|
22 | 22 | |
|
23 | 23 | |
|
24 | 24 | .title { |
|
25 | 25 | font-weight: bold; |
|
26 | 26 | color: #333; |
|
27 | 27 | font-size: 2ex; |
|
28 | 28 | } |
|
29 | 29 | |
|
30 | 30 | .link, a { |
|
31 | 31 | color: rgb(255, 102, 0); |
|
32 | 32 | } |
|
33 | 33 | |
|
34 | 34 | .block { |
|
35 | 35 | display: inline-block; |
|
36 | 36 | vertical-align: top; |
|
37 | 37 | } |
|
38 | 38 | |
|
39 | 39 | .tag { |
|
40 | 40 | color: #222; |
|
41 | 41 | } |
|
42 | 42 | |
|
43 | 43 | .post_id:hover { |
|
44 | 44 | color: #11f; |
|
45 | 45 | } |
|
46 | 46 | |
|
47 | 47 | .post_id { |
|
48 | 48 | color: #444; |
|
49 | 49 | } |
|
50 | 50 | |
|
51 | 51 | .post, .dead_post, #posts-table { |
|
52 | 52 | margin: 5px; |
|
53 | 53 | padding: 10px; |
|
54 | 54 | background: rgb(221, 221, 221); |
|
55 | 55 | border: 1px solid rgb(204, 204, 204); |
|
56 | 56 | border-radius: 5px 5px 5px 5px; |
|
57 | 57 | clear: left; |
|
58 | 58 | word-wrap: break-word; |
|
59 | 59 | display: table; |
|
60 | 60 | } |
|
61 | 61 | |
|
62 | 62 | .metadata { |
|
63 | 63 | padding: 5px; |
|
64 | 64 | margin-top: 10px; |
|
65 | 65 | border: solid 1px #666; |
|
66 | 66 | font-size: 0.9em; |
|
67 | 67 | display: table; |
|
68 | 68 | } |
|
69 | 69 | |
|
70 | 70 | .navigation_panel, .tag_info, .page_link { |
|
71 | 71 | margin: 5px; |
|
72 | 72 | padding: 10px; |
|
73 | 73 | border: 1px solid rgb(204, 204, 204); |
|
74 | 74 | border-radius: 5px 5px 5px 5px; |
|
75 | 75 | } |
|
76 | 76 | |
|
77 | 77 | .navigation_panel .link { |
|
78 | 78 | border-right: 1px solid #000; |
|
79 | 79 | font-weight: bold; |
|
80 | 80 | margin-right: 1ex; |
|
81 | 81 | padding-right: 1ex; |
|
82 | 82 | } |
|
83 | 83 | .navigation_panel .link:last-child { |
|
84 | 84 | border-left: 1px solid #000; |
|
85 | 85 | border-right: none; |
|
86 | 86 | float: right; |
|
87 | 87 | margin-left: 1ex; |
|
88 | 88 | margin-right: 0; |
|
89 | 89 | padding-left: 1ex; |
|
90 | 90 | padding-right: 0; |
|
91 | 91 | } |
|
92 | 92 | |
|
93 | 93 | .navigation_panel::after, .post::after { |
|
94 | 94 | clear: both; |
|
95 | 95 | content: "."; |
|
96 | 96 | display: block; |
|
97 | 97 | height: 0; |
|
98 | 98 | line-height: 0; |
|
99 | 99 | visibility: hidden; |
|
100 | 100 | } |
|
101 | 101 | |
|
102 | 102 | p { |
|
103 | 103 | margin-top: .5em; |
|
104 | 104 | margin-bottom: .5em; |
|
105 | 105 | } |
|
106 | 106 | |
|
107 | 107 | .post-form-w { |
|
108 | 108 | display: table; |
|
109 | 109 | padding: 10px; |
|
110 | 110 | margin: 5px |
|
111 | 111 | } |
|
112 | 112 | |
|
113 | 113 | .form-row { |
|
114 | 114 | display: table-row; |
|
115 | 115 | } |
|
116 | 116 | |
|
117 | 117 | .form-label, .form-input, .form-errors { |
|
118 | 118 | display: table-cell; |
|
119 | 119 | } |
|
120 | 120 | |
|
121 | 121 | .form-label { |
|
122 | 122 | padding: .25em 1ex .25em 0; |
|
123 | 123 | vertical-align: top; |
|
124 | 124 | } |
|
125 | 125 | |
|
126 | 126 | .form-input { |
|
127 | 127 | padding: .25em 0; |
|
128 | 128 | } |
|
129 | 129 | |
|
130 | 130 | .form-errors { |
|
131 | 131 | padding-left: 1ex; |
|
132 | 132 | font-weight: bold; |
|
133 | 133 | vertical-align: middle; |
|
134 | 134 | } |
|
135 | 135 | |
|
136 | 136 | .post-form input, .post-form textarea { |
|
137 | 137 | background: #fff; |
|
138 | 138 | color: #000; |
|
139 | 139 | border: solid 1px; |
|
140 | 140 | padding: 0; |
|
141 | 141 | width: 100%; |
|
142 | 142 | font: medium sans; |
|
143 | 143 | } |
|
144 | 144 | |
|
145 | 145 | .form-submit { |
|
146 | 146 | border-bottom: 2px solid #ddd; |
|
147 | 147 | margin-bottom: .5em; |
|
148 | 148 | padding-bottom: .5em; |
|
149 | 149 | } |
|
150 | 150 | |
|
151 | 151 | .form-title { |
|
152 | 152 | font-weight: bold; |
|
153 | 153 | } |
|
154 | 154 | |
|
155 | 155 | input[type="submit"] { |
|
156 | 156 | background: #fff; |
|
157 | 157 | border: solid 1px #000; |
|
158 | 158 | color: #000; |
|
159 | 159 | } |
|
160 | 160 | |
|
161 | 161 | blockquote { |
|
162 | 162 | border-left: solid 2px; |
|
163 | 163 | padding-left: 5px; |
|
164 | 164 | color: #B1FB17; |
|
165 | 165 | margin: 0; |
|
166 | 166 | } |
|
167 | 167 | |
|
168 | 168 | .post > .image { |
|
169 | 169 | float: left; |
|
170 | 170 | margin: 0 1ex .5ex 0; |
|
171 | 171 | min-width: 1px; |
|
172 | 172 | text-align: center; |
|
173 | 173 | display: table-row; |
|
174 | 174 | } |
|
175 | 175 | |
|
176 | 176 | .post > .metadata { |
|
177 | 177 | clear: left; |
|
178 | 178 | } |
|
179 | 179 | |
|
180 | 180 | .get { |
|
181 | 181 | font-weight: bold; |
|
182 | 182 | color: #d55; |
|
183 | 183 | } |
|
184 | 184 | |
|
185 | 185 | * { |
|
186 | 186 | text-decoration: none; |
|
187 | 187 | } |
|
188 | 188 | |
|
189 | 189 | .dead_post { |
|
190 | 190 | background-color: #ecc; |
|
191 | 191 | } |
|
192 | 192 | |
|
193 | 193 | .quote { |
|
194 | 194 | color: #080; |
|
195 | 195 | font-style: italic; |
|
196 | 196 | } |
|
197 | 197 | |
|
198 | 198 | .spoiler { |
|
199 | 199 | background: white; |
|
200 | 200 | color: white; |
|
201 | 201 | } |
|
202 | 202 | |
|
203 | 203 | .spoiler:hover { |
|
204 | 204 | color: black; |
|
205 | 205 | } |
|
206 | 206 | |
|
207 | 207 | .comment { |
|
208 | 208 | color: #8B6914; |
|
209 | 209 | font-style: italic; |
|
210 | 210 | } |
|
211 | 211 | |
|
212 | 212 | a:hover { |
|
213 | 213 | text-decoration: underline; |
|
214 | 214 | } |
|
215 | 215 | |
|
216 | 216 | .last-replies { |
|
217 | 217 | margin-left: 3ex; |
|
218 | 218 | } |
|
219 | 219 | |
|
220 | 220 | .thread { |
|
221 | 221 | margin-bottom: 3ex; |
|
222 | 222 | } |
|
223 | 223 | |
|
224 | 224 | .post:target { |
|
225 | 225 | border: solid 2px black; |
|
226 | 226 | } |
|
227 | 227 | |
|
228 | 228 | pre{ |
|
229 | 229 | white-space:pre-wrap |
|
230 | 230 | } |
|
231 | 231 | |
|
232 | 232 | li { |
|
233 | 233 | list-style-position: inside; |
|
234 | 234 | } |
|
235 | 235 | |
|
236 | 236 | .fancybox-skin { |
|
237 | 237 | position: relative; |
|
238 | 238 | background-color: #fff; |
|
239 | 239 | color: #ddd; |
|
240 | 240 | text-shadow: none; |
|
241 | 241 | } |
|
242 | 242 | |
|
243 | 243 | .fancybox-image { |
|
244 | 244 | border: 1px solid black; |
|
245 | 245 | } |
|
246 | 246 | |
|
247 | 247 | .image-mode-tab { |
|
248 | 248 | display: table; |
|
249 | 249 | margin: 5px; |
|
250 | 250 | padding: 5px; |
|
251 | 251 | background: rgb(221, 221, 221); |
|
252 | 252 | border: 1px solid rgb(204, 204, 204); |
|
253 | 253 | border-radius: 5px 5px 5px 5px; |
|
254 | 254 | } |
|
255 | 255 | |
|
256 | 256 | .image-mode-tab > label { |
|
257 | 257 | margin: 0 1ex; |
|
258 | 258 | } |
|
259 | 259 | |
|
260 | 260 | .image-mode-tab > label > input { |
|
261 | 261 | margin-right: .5ex; |
|
262 | 262 | } |
|
263 | 263 | |
|
264 | 264 | #posts-table { |
|
265 | 265 | margin: 5px; |
|
266 | 266 | } |
|
267 | 267 | |
|
268 | 268 | .tag_info, .page_link { |
|
269 | 269 | display: table; |
|
270 | 270 | } |
|
271 | 271 | |
|
272 | 272 | .tag_info > h2 { |
|
273 | 273 | margin: 0; |
|
274 | 274 | } |
|
275 | 275 | |
|
276 | 276 | .moderator_info { |
|
277 | 277 | color: #e99d41; |
|
278 | 278 | border: dashed 1px; |
|
279 | 279 | padding: 3px; |
|
280 | 280 | } |
|
281 | 281 | |
|
282 | 282 | .refmap { |
|
283 | 283 | font-size: 0.9em; |
|
284 | 284 | color: #444; |
|
285 | 285 | margin-top: 1em; |
|
286 | 286 | } |
|
287 | 287 | |
|
288 | 288 | input[type="submit"]:hover { |
|
289 | 289 | background: #ccc; |
|
290 | 290 | } |
|
291 | 291 | |
|
292 | 292 | |
|
293 | 293 | .fav { |
|
294 | 294 | color: rgb(255, 102, 0); |
|
295 | 295 | } |
|
296 | 296 | |
|
297 | 297 | .not_fav { |
|
298 | 298 | color: #555; |
|
299 | 299 | } |
|
300 | 300 | |
|
301 | 301 | .role { |
|
302 | 302 | text-decoration: underline; |
|
303 | 303 | } |
|
304 | 304 | |
|
305 | 305 | .form-email { |
|
306 | 306 | display: none; |
|
307 | 307 | } |
|
308 | 308 | |
|
309 | 309 | .mark_btn { |
|
310 | 310 | padding: 2px 2ex; |
|
311 | 311 | border: 1px solid; |
|
312 | 312 | } |
|
313 | 313 | |
|
314 | 314 | .mark_btn:hover { |
|
315 | 315 | background: #ccc; |
|
316 | 316 | } |
|
317 | 317 | |
|
318 | 318 | .bar-value { |
|
319 | 319 | background: rgba(251, 199, 16, 0.61); |
|
320 | 320 | padding: 2px; |
|
321 | 321 | font-size: 0.9em; |
|
322 | 322 | height: 1.5em; |
|
323 | 323 | } |
|
324 | 324 | |
|
325 | 325 | .bar-bg { |
|
326 | 326 | position: relative; |
|
327 | 327 | border: 1px solid rgb(204, 204, 204); |
|
328 | 328 | border-radius: 5px 5px 5px 5px; |
|
329 | 329 | margin: 5px; |
|
330 | 330 | overflow: hidden; |
|
331 | 331 | } |
|
332 | 332 | |
|
333 | 333 | .bar-text { |
|
334 | 334 | padding: 2px; |
|
335 | 335 | position: absolute; |
|
336 | 336 | left: 0; |
|
337 | 337 | top: 0; |
|
338 | 338 | } |
|
339 | 339 | |
|
340 | 340 | .skipped_replies { |
|
341 | 341 | margin: 5px; |
|
342 | 342 | } |
|
343 | ||
|
344 | .current_page, .current_mode { | |
|
345 | border: solid 1px #000; | |
|
346 | padding: 2px; | |
|
347 | } No newline at end of file |
@@ -1,333 +1,353 b'' | |||
|
1 | 1 | * { |
|
2 | 2 | font-size: inherit; |
|
3 | 3 | margin: 0; |
|
4 | 4 | padding: 0; |
|
5 | 5 | } |
|
6 | 6 | html { |
|
7 | 7 | background: #fff; |
|
8 | 8 | color: #000; |
|
9 | 9 | font: medium sans-serif; |
|
10 | 10 | } |
|
11 | 11 | a { |
|
12 | 12 | color: inherit; |
|
13 | 13 | text-decoration: underline; |
|
14 | 14 | } |
|
15 | 15 | li { |
|
16 | 16 | list-style-position: inside; |
|
17 | 17 | } |
|
18 | 18 | |
|
19 | 19 | #admin_panel { |
|
20 | 20 | background: #182F6F; |
|
21 | 21 | color: #fff; |
|
22 | 22 | padding: .5ex 1ex .5ex 1ex; |
|
23 | 23 | } |
|
24 | 24 | |
|
25 | 25 | .navigation_panel { |
|
26 | 26 | background: #182F6F; |
|
27 | 27 | color: #B4CFEC; |
|
28 | 28 | margin-bottom: 1em; |
|
29 | 29 | padding: .5ex 1ex 1ex 1ex; |
|
30 | 30 | } |
|
31 | 31 | .navigation_panel::after { |
|
32 | 32 | clear: both; |
|
33 | 33 | content: "."; |
|
34 | 34 | display: block; |
|
35 | 35 | height: 0; |
|
36 | 36 | line-height: 0; |
|
37 | 37 | visibility: hidden; |
|
38 | 38 | } |
|
39 | 39 | |
|
40 | 40 | .navigation_panel a:link, .navigation_panel a:visited, .navigation_panel a:hover { |
|
41 | 41 | text-decoration: none; |
|
42 | 42 | } |
|
43 | 43 | |
|
44 | 44 | .navigation_panel .link { |
|
45 | 45 | border-right: 1px solid #fff; |
|
46 | 46 | color: #fff; |
|
47 | 47 | font-weight: bold; |
|
48 | 48 | margin-right: 1ex; |
|
49 | 49 | padding-right: 1ex; |
|
50 | 50 | } |
|
51 | 51 | .navigation_panel .link:last-child { |
|
52 | 52 | border-left: 1px solid #fff; |
|
53 | 53 | border-right: none; |
|
54 | 54 | float: right; |
|
55 | 55 | margin-left: 1ex; |
|
56 | 56 | margin-right: 0; |
|
57 | 57 | padding-left: 1ex; |
|
58 | 58 | padding-right: 0; |
|
59 | 59 | } |
|
60 | 60 | |
|
61 | 61 | .navigation_panel .tag { |
|
62 | 62 | color: #fff; |
|
63 | 63 | } |
|
64 | 64 | |
|
65 | 65 | .input_field { |
|
66 | 66 | |
|
67 | 67 | } |
|
68 | 68 | |
|
69 | 69 | .input_field_name { |
|
70 | 70 | |
|
71 | 71 | } |
|
72 | 72 | |
|
73 | 73 | .input_field_error { |
|
74 | 74 | color: #FF0000; |
|
75 | 75 | } |
|
76 | 76 | |
|
77 | 77 | |
|
78 | 78 | .title { |
|
79 | 79 | color: #182F6F; |
|
80 | 80 | font-weight: bold; |
|
81 | 81 | } |
|
82 | 82 | |
|
83 | 83 | .post-form-w { |
|
84 | 84 | background: #182F6F; |
|
85 | 85 | border-radius: 1ex; |
|
86 | 86 | color: #fff; |
|
87 | 87 | margin: 1em 1ex; |
|
88 | 88 | padding: 1ex; |
|
89 | 89 | } |
|
90 | 90 | .post-form { |
|
91 | 91 | display: table; |
|
92 | 92 | border-collapse: collapse; |
|
93 | 93 | width: 100%; |
|
94 | 94 | |
|
95 | 95 | } |
|
96 | 96 | .form-row { |
|
97 | 97 | display: table-row; |
|
98 | 98 | } |
|
99 | 99 | .form-label, .form-input { |
|
100 | 100 | display: table-cell; |
|
101 | 101 | vertical-align: top; |
|
102 | 102 | } |
|
103 | 103 | .form-label { |
|
104 | 104 | padding: .25em 1ex .25em 0; |
|
105 | 105 | } |
|
106 | 106 | .form-input { |
|
107 | 107 | padding: .25em 0; |
|
108 | 108 | } |
|
109 | 109 | .form-input > * { |
|
110 | 110 | background: #fff; |
|
111 | 111 | color: #000; |
|
112 | 112 | border: none; |
|
113 | 113 | padding: 0; |
|
114 | 114 | resize: vertical; |
|
115 | 115 | width: 100%; |
|
116 | 116 | } |
|
117 | 117 | .form-submit { |
|
118 | 118 | border-bottom: 1px solid #666; |
|
119 | 119 | margin-bottom: .5em; |
|
120 | 120 | padding-bottom: .5em; |
|
121 | 121 | } |
|
122 | 122 | .form-title { |
|
123 | 123 | font-weight: bold; |
|
124 | 124 | margin-bottom: .5em; |
|
125 | 125 | } |
|
126 | 126 | .post-form .settings_item { |
|
127 | 127 | margin: .5em 0; |
|
128 | 128 | } |
|
129 | 129 | .form-submit input { |
|
130 | 130 | margin-top: .5em; |
|
131 | 131 | padding: .2em 1ex; |
|
132 | 132 | } |
|
133 | 133 | .form-label { |
|
134 | 134 | text-align: right; |
|
135 | 135 | } |
|
136 | 136 | |
|
137 | 137 | .block { |
|
138 | 138 | display: inline-block; |
|
139 | 139 | vertical-align: top; |
|
140 | 140 | } |
|
141 | 141 | |
|
142 | 142 | .post_id { |
|
143 | 143 | color: #a00; |
|
144 | 144 | } |
|
145 | 145 | |
|
146 | 146 | .post { |
|
147 | 147 | clear: left; |
|
148 | 148 | margin: 0 1ex 1em 1ex; |
|
149 | 149 | overflow-x: auto; |
|
150 | 150 | word-wrap: break-word; |
|
151 | 151 | background: #FFF; |
|
152 | 152 | padding: 1ex; |
|
153 | 153 | border: 1px solid #666; |
|
154 | 154 | box-shadow: 1px 1px 2px 1px #666; |
|
155 | 155 | } |
|
156 | 156 | |
|
157 | 157 | #posts > .post:last-child { |
|
158 | 158 | border-bottom: none; |
|
159 | 159 | padding-bottom: 0; |
|
160 | 160 | } |
|
161 | 161 | |
|
162 | 162 | .metadata { |
|
163 | 163 | background: #C0E4E8; |
|
164 | 164 | border: 1px solid #7F9699; |
|
165 | 165 | border-radius: .4ex; |
|
166 | 166 | display: table; |
|
167 | 167 | margin-top: .5em; |
|
168 | 168 | padding: .4em; |
|
169 | 169 | } |
|
170 | 170 | |
|
171 | 171 | .post ul, .post ol { |
|
172 | 172 | margin: .5em 0 .5em 3ex; |
|
173 | 173 | } |
|
174 | 174 | .post li { |
|
175 | 175 | margin: .2em 0; |
|
176 | 176 | } |
|
177 | 177 | .post p { |
|
178 | 178 | margin: .5em 0; |
|
179 | 179 | } |
|
180 | 180 | .post blockquote { |
|
181 | 181 | border-left: 3px solid #182F6F; |
|
182 | 182 | margin: .5em 0 .5em 3ex; |
|
183 | 183 | padding-left: 1ex; |
|
184 | 184 | } |
|
185 | 185 | .post blockquote > blockquote { |
|
186 | 186 | padding-top: .1em; |
|
187 | 187 | } |
|
188 | 188 | |
|
189 | 189 | .post > .image { |
|
190 | 190 | float: left; |
|
191 | 191 | margin-right: 1ex; |
|
192 | 192 | } |
|
193 | 193 | .post > .metadata { |
|
194 | 194 | clear: left; |
|
195 | 195 | } |
|
196 | 196 | |
|
197 | 197 | .post > .message .get { |
|
198 | 198 | color: #182F6F; font-weight: bold; |
|
199 | 199 | } |
|
200 | 200 | |
|
201 | 201 | .dead_post > .metadata { |
|
202 | 202 | background: #eee; |
|
203 | 203 | } |
|
204 | 204 | |
|
205 | 205 | .quote { |
|
206 | 206 | color: #182F6F; |
|
207 | 207 | } |
|
208 | 208 | |
|
209 | 209 | .spoiler { |
|
210 | 210 | background: black; |
|
211 | 211 | color: black; |
|
212 | 212 | } |
|
213 | 213 | |
|
214 | 214 | .spoiler:hover { |
|
215 | 215 | background: #ffffff; |
|
216 | 216 | } |
|
217 | 217 | |
|
218 | 218 | .comment { |
|
219 | 219 | color: #557055; |
|
220 | 220 | } |
|
221 | 221 | |
|
222 | 222 | .last-replies { |
|
223 | 223 | margin-left: 6ex; |
|
224 | 224 | } |
|
225 | 225 | |
|
226 | 226 | .thread > .post > .message > .post-info { |
|
227 | 227 | border-bottom: 1px solid #ccc; |
|
228 | 228 | padding-bottom: .5em; |
|
229 | 229 | } |
|
230 | 230 | |
|
231 | 231 | :target .post_id { |
|
232 | 232 | background: #182F6F; |
|
233 | 233 | color: #FFF; |
|
234 | 234 | text-decoration: none; |
|
235 | 235 | } |
|
236 | 236 | |
|
237 | 237 | .image-mode-tab { |
|
238 | 238 | background: #182F6F; |
|
239 | 239 | color: #FFF; |
|
240 | 240 | display: table; |
|
241 | 241 | margin: 1em auto 1em 0; |
|
242 | 242 | padding: .2em .5ex; |
|
243 | 243 | } |
|
244 | 244 | |
|
245 | 245 | .image-mode-tab > label { |
|
246 | 246 | margin: 0 1ex; |
|
247 | 247 | } |
|
248 | 248 | |
|
249 | 249 | .image-mode-tab > label > input { |
|
250 | 250 | margin-right: .5ex; |
|
251 | 251 | } |
|
252 | 252 | |
|
253 | 253 | .tag_info, .page_link { |
|
254 | 254 | margin: 1em 0; |
|
255 | 255 | text-align: center; |
|
256 | 256 | } |
|
257 | 257 | |
|
258 | 258 | .form-errors { |
|
259 | 259 | margin-left: 1ex; |
|
260 | 260 | } |
|
261 | 261 | |
|
262 | 262 | .moderator_info { |
|
263 | 263 | font-weight: bold; |
|
264 | 264 | float: right; |
|
265 | 265 | } |
|
266 | 266 | |
|
267 | 267 | .refmap { |
|
268 | 268 | border: 1px dashed #aaa; |
|
269 | 269 | padding: 0.5em; |
|
270 | 270 | display: table; |
|
271 | 271 | } |
|
272 | 272 | |
|
273 | 273 | .fav { |
|
274 | 274 | color: blue; |
|
275 | 275 | } |
|
276 | 276 | |
|
277 | 277 | .not_fav { |
|
278 | 278 | color: #ccc; |
|
279 | 279 | } |
|
280 | 280 | |
|
281 | 281 | .role { |
|
282 | 282 | text-decoration: underline; |
|
283 | 283 | } |
|
284 | 284 | |
|
285 | 285 | .form-email { |
|
286 | 286 | display: none; |
|
287 | 287 | } |
|
288 | 288 | |
|
289 | 289 | .bar-value { |
|
290 | 290 | background: #E3E7F2; |
|
291 | 291 | padding: .1em 1ex; |
|
292 | 292 | moz-box-sizing: border-box; |
|
293 | 293 | box-sizing: border-box; |
|
294 | 294 | height: 1.5em; |
|
295 | 295 | } |
|
296 | 296 | |
|
297 | 297 | .bar-bg { |
|
298 | 298 | background: #EA4649; |
|
299 | 299 | border: 1px solid #666; |
|
300 | 300 | margin: 0 1ex 1em 1ex; |
|
301 | 301 | position: relative; |
|
302 | 302 | overflow: hidden; |
|
303 | 303 | } |
|
304 | 304 | |
|
305 | 305 | .bar-text { |
|
306 | 306 | padding: 2px; |
|
307 | 307 | position: absolute; |
|
308 | 308 | left: 0; |
|
309 | 309 | top: 0; |
|
310 | 310 | } |
|
311 | 311 | |
|
312 | 312 | .skipped_replies { |
|
313 | 313 | margin: 1ex; |
|
314 | 314 | } |
|
315 | 315 | |
|
316 | 316 | #mark-panel { |
|
317 | 317 | background: #eee; |
|
318 | 318 | border-bottom: 1px solid #182F6F; |
|
319 | 319 | } |
|
320 | 320 | |
|
321 | 321 | .mark_btn { |
|
322 | 322 | display: inline-block; |
|
323 | 323 | padding: .2em 1ex; |
|
324 | 324 | border-left: 1px solid #182F6F; |
|
325 | 325 | } |
|
326 | 326 | |
|
327 | 327 | .mark_btn:first-child { |
|
328 | 328 | border-left: none; |
|
329 | 329 | } |
|
330 | 330 | |
|
331 | 331 | .mark_btn:last-child { |
|
332 | 332 | border-right: 1px solid #182F6F; |
|
333 | } | |
|
334 | ||
|
335 | .current_page { | |
|
336 | border-bottom: 1px solid #FFF; | |
|
337 | padding: 0px 0.5ex; | |
|
338 | } | |
|
339 | ||
|
340 | .image-mode-tab a { | |
|
341 | text-decoration: none; | |
|
342 | } | |
|
343 | .image-mode-tab .current_mode::before { | |
|
344 | content: "✓ "; | |
|
345 | padding: 0 0 0 .5ex; | |
|
346 | color: #182F6F; | |
|
347 | background: #FFF; | |
|
348 | } | |
|
349 | .image-mode-tab .current_mode { | |
|
350 | padding: 0 .5ex 0 0; | |
|
351 | color: #182F6F; | |
|
352 | background: #FFF; | |
|
333 | 353 | } No newline at end of file |
@@ -1,136 +1,136 b'' | |||
|
1 | 1 | {% extends "boards/base.html" %} |
|
2 | 2 | |
|
3 | 3 | {% load i18n %} |
|
4 | 4 | {% load cache %} |
|
5 | 5 | {% load static from staticfiles %} |
|
6 | 6 | {% load board %} |
|
7 | 7 | |
|
8 | 8 | {% block head %} |
|
9 | 9 | <title>Neboard - {{ thread.get_opening_post.get_title }}</title> |
|
10 | 10 | {% endblock %} |
|
11 | 11 | |
|
12 | 12 | {% block content %} |
|
13 | 13 | {% spaceless %} |
|
14 | 14 | {% get_current_language as LANGUAGE_CODE %} |
|
15 | 15 | |
|
16 | 16 | <script src="{% static 'js/thread_update.js' %}"></script> |
|
17 | 17 | <script src="{% static 'js/thread.js' %}"></script> |
|
18 | 18 | |
|
19 | 19 | {% cache 600 thread_view thread.id thread.last_edit_time moderator LANGUAGE_CODE %} |
|
20 | 20 | |
|
21 | 21 | <div class="image-mode-tab"> |
|
22 |
<a class="current_ |
|
|
22 | <a class="current_mode" href="{% url 'thread' thread.get_opening_post.id %}">{% trans 'Normal mode' %}</a>, | |
|
23 | 23 | <a href="{% url 'thread_mode' thread.get_opening_post.id 'gallery' %}">{% trans 'Gallery mode' %}</a> |
|
24 | 24 | </div> |
|
25 | 25 | |
|
26 | 26 | {% if bumpable %} |
|
27 | 27 | <div class="bar-bg"> |
|
28 | 28 | <div class="bar-value" style="width:{{ bumplimit_progress }}%" id="bumplimit_progress"> |
|
29 | 29 | </div> |
|
30 | 30 | <div class="bar-text"> |
|
31 | 31 | <span id="left_to_limit">{{ posts_left }}</span> {% trans 'posts to bumplimit' %} |
|
32 | 32 | </div> |
|
33 | 33 | </div> |
|
34 | 34 | {% endif %} |
|
35 | 35 | <div class="thread"> |
|
36 | 36 | {% for post in thread.get_replies %} |
|
37 | 37 | {% if bumpable %} |
|
38 | 38 | <div class="post" id="{{ post.id }}"> |
|
39 | 39 | {% else %} |
|
40 | 40 | <div class="post dead_post" id="{{ post.id }}"> |
|
41 | 41 | {% endif %} |
|
42 | 42 | {% if post.image %} |
|
43 | 43 | <div class="image"> |
|
44 | 44 | <a |
|
45 | 45 | class="thumb" |
|
46 | 46 | href="{{ post.image.url }}"><img |
|
47 | 47 | src="{{ post.image.url_200x150 }}" |
|
48 | 48 | alt="{{ post.id }}" |
|
49 | 49 | width="{{ post.image_pre_width }}" |
|
50 | 50 | height="{{ post.image_pre_height }}" |
|
51 | 51 | data-width="{{ post.image_width }}" |
|
52 | 52 | data-height="{{ post.image_height }}"/> |
|
53 | 53 | </a> |
|
54 | 54 | </div> |
|
55 | 55 | {% endif %} |
|
56 | 56 | <div class="message"> |
|
57 | 57 | <div class="post-info"> |
|
58 | 58 | <span class="title">{{ post.title }}</span> |
|
59 | 59 | <a class="post_id" href="#{{ post.id }}"> |
|
60 | 60 | ({{ post.id }})</a> |
|
61 | 61 | [{{ post.pub_time }}] |
|
62 | 62 | [<a href="#" onclick="javascript:addQuickReply('{{ post.id }}') |
|
63 | 63 | ; return false;">>></a>] |
|
64 | 64 | |
|
65 | 65 | {% if moderator %} |
|
66 | 66 | <span class="moderator_info"> |
|
67 | 67 | [<a href="{% url 'delete' post_id=post.id %}" |
|
68 | 68 | >{% trans 'Delete' %}</a>] |
|
69 | 69 | ({{ post.poster_ip }}) |
|
70 | 70 | [<a href="{% url 'ban' post_id=post.id %}?next={{ request.path }}" |
|
71 | 71 | >{% trans 'Ban IP' %}</a>] |
|
72 | 72 | </span> |
|
73 | 73 | {% endif %} |
|
74 | 74 | </div> |
|
75 | 75 | {% autoescape off %} |
|
76 | 76 | {{ post.text.rendered }} |
|
77 | 77 | {% endautoescape %} |
|
78 | 78 | {% if post.is_referenced %} |
|
79 | 79 | <div class="refmap"> |
|
80 | 80 | {% trans "Replies" %}: |
|
81 | 81 | {% for ref_post in post.get_sorted_referenced_posts %} |
|
82 | 82 | <a href="{% post_url ref_post.id %}">>>{{ ref_post.id }}</a |
|
83 | 83 | >{% if not forloop.last %},{% endif %} |
|
84 | 84 | {% endfor %} |
|
85 | 85 | </div> |
|
86 | 86 | {% endif %} |
|
87 | 87 | </div> |
|
88 | 88 | {% if forloop.first %} |
|
89 | 89 | <div class="metadata"> |
|
90 | 90 | <span class="tags"> |
|
91 | 91 | {% for tag in thread.get_tags %} |
|
92 | 92 | <a class="tag" href="{% url 'tag' tag.name %}"> |
|
93 | 93 | #{{ tag.name }}</a |
|
94 | 94 | >{% if not forloop.last %},{% endif %} |
|
95 | 95 | {% endfor %} |
|
96 | 96 | </span> |
|
97 | 97 | </div> |
|
98 | 98 | {% endif %} |
|
99 | 99 | </div> |
|
100 | 100 | {% endfor %} |
|
101 | 101 | </div> |
|
102 | 102 | {% endcache %} |
|
103 | 103 | |
|
104 | 104 | <div class="post-form-w"> |
|
105 | 105 | <script src="{% static 'js/panel.js' %}"></script> |
|
106 | 106 | <div class="form-title">{% trans "Reply to thread" %} #{{ thread.get_opening_post.id }}</div> |
|
107 | 107 | <div class="post-form"> |
|
108 | 108 | <form id="form" enctype="multipart/form-data" method="post" |
|
109 | 109 | >{% csrf_token %} |
|
110 | 110 | {{ form.as_div }} |
|
111 | 111 | <div class="form-submit"> |
|
112 | 112 | <input type="submit" value="{% trans "Post" %}"/> |
|
113 | 113 | </div> |
|
114 | 114 | </form> |
|
115 | 115 | <div><a href="{% url "staticpage" name="help" %}"> |
|
116 | 116 | {% trans 'Text syntax' %}</a></div> |
|
117 | 117 | </div> |
|
118 | 118 | </div> |
|
119 | 119 | |
|
120 | 120 | {% endspaceless %} |
|
121 | 121 | {% endblock %} |
|
122 | 122 | |
|
123 | 123 | {% block metapanel %} |
|
124 | 124 | |
|
125 | 125 | {% get_current_language as LANGUAGE_CODE %} |
|
126 | 126 | |
|
127 | 127 | <span class="metapanel" data-last-update="{{ last_update }}"> |
|
128 | 128 | {% cache 600 thread_meta thread.last_edit_time moderator LANGUAGE_CODE %} |
|
129 | 129 | <span id="reply-count">{{ thread.get_reply_count }}</span> {% trans 'replies' %}, |
|
130 | 130 | <span id="image-count">{{ thread.get_images_count }}</span> {% trans 'images' %}. |
|
131 | 131 | {% trans 'Last update: ' %}{{ thread.last_edit_time }} |
|
132 | 132 | [<a href="rss/">RSS</a>] |
|
133 | 133 | {% endcache %} |
|
134 | 134 | </span> |
|
135 | 135 | |
|
136 | 136 | {% endblock %} |
@@ -1,58 +1,58 b'' | |||
|
1 | 1 | {% extends "boards/base.html" %} |
|
2 | 2 | |
|
3 | 3 | {% load i18n %} |
|
4 | 4 | {% load cache %} |
|
5 | 5 | {% load static from staticfiles %} |
|
6 | 6 | {% load board %} |
|
7 | 7 | |
|
8 | 8 | {% block head %} |
|
9 | 9 | <title>Neboard - {{ thread.get_opening_post.get_title }}</title> |
|
10 | 10 | {% endblock %} |
|
11 | 11 | |
|
12 | 12 | {% block content %} |
|
13 | 13 | {% spaceless %} |
|
14 | 14 | {% get_current_language as LANGUAGE_CODE %} |
|
15 | 15 | |
|
16 | 16 | <script src="{% static 'js/thread.js' %}"></script> |
|
17 | 17 | |
|
18 | 18 | {% cache 600 thread_gallery_view thread.id thread.last_edit_time LANGUAGE_CODE %} |
|
19 | 19 | <div class="image-mode-tab"> |
|
20 | 20 | <a href="{% url 'thread' thread.get_opening_post.id %}">{% trans 'Normal mode' %}</a>, |
|
21 |
<a class="current_ |
|
|
21 | <a class="current_mode" href="{% url 'thread_mode' thread.get_opening_post.id 'gallery' %}">{% trans 'Gallery mode' %}</a> | |
|
22 | 22 | </div> |
|
23 | 23 | |
|
24 | 24 | <div id="posts-table"> |
|
25 | 25 | {% for post in thread.get_replies %} |
|
26 | 26 | {% if post.image %} |
|
27 | 27 | <a |
|
28 | 28 | class="thumb" |
|
29 | 29 | href="{{ post.image.url }}"><img |
|
30 | 30 | src="{{ post.image.url_200x150 }}" |
|
31 | 31 | alt="{{ post.id }}" |
|
32 | 32 | width="{{ post.image_pre_width }}" |
|
33 | 33 | height="{{ post.image_pre_height }}" |
|
34 | 34 | data-width="{{ post.image_width }}" |
|
35 | 35 | data-height="{{ post.image_height }}"/> |
|
36 | 36 | </a> |
|
37 | 37 | {% endif %} |
|
38 | 38 | {% endfor %} |
|
39 | 39 | </div> |
|
40 | 40 | {% endcache %} |
|
41 | 41 | |
|
42 | 42 | {% endspaceless %} |
|
43 | 43 | {% endblock %} |
|
44 | 44 | |
|
45 | 45 | {% block metapanel %} |
|
46 | 46 | |
|
47 | 47 | {% get_current_language as LANGUAGE_CODE %} |
|
48 | 48 | |
|
49 | 49 | <span class="metapanel" data-last-update="{{ last_update }}"> |
|
50 | 50 | {% cache 600 thread_meta thread.last_edit_time moderator LANGUAGE_CODE %} |
|
51 | 51 | <span id="reply-count">{{ thread.get_reply_count }}</span> {% trans 'replies' %}, |
|
52 | 52 | <span id="image-count">{{ thread.get_images_count }}</span> {% trans 'images' %}. |
|
53 | 53 | {% trans 'Last update: ' %}{{ thread.last_edit_time }} |
|
54 | 54 | [<a href="rss/">RSS</a>] |
|
55 | 55 | {% endcache %} |
|
56 | 56 | </span> |
|
57 | 57 | |
|
58 | 58 | {% endblock %} |
General Comments 0
You need to be logged in to leave comments.
Login now