##// END OF EJS Templates
Made moderator panels less opaque in MD theme
neko259 -
r972:14f09a3c default
parent child Browse files
Show More
@@ -1,486 +1,491 b''
1 * {
1 * {
2 text-decoration: none;
2 text-decoration: none;
3 font-weight: inherit;
3 font-weight: inherit;
4 }
4 }
5
5
6 b, strong {
6 b, strong {
7 font-weight: bold;
7 font-weight: bold;
8 }
8 }
9
9
10 html {
10 html {
11 background: #555;
11 background: #555;
12 color: #ffffff;
12 color: #ffffff;
13 }
13 }
14
14
15 body {
15 body {
16 margin: 0;
16 margin: 0;
17 }
17 }
18
18
19 #admin_panel {
19 #admin_panel {
20 background: #FF0000;
20 background: #FF0000;
21 color: #00FF00
21 color: #00FF00
22 }
22 }
23
23
24 .input_field_error {
24 .input_field_error {
25 color: #FF0000;
25 color: #FF0000;
26 }
26 }
27
27
28 .title {
28 .title {
29 font-weight: bold;
29 font-weight: bold;
30 color: #ffcc00;
30 color: #ffcc00;
31 }
31 }
32
32
33 .link, a {
33 .link, a {
34 color: #afdcec;
34 color: #afdcec;
35 }
35 }
36
36
37 .block {
37 .block {
38 display: inline-block;
38 display: inline-block;
39 vertical-align: top;
39 vertical-align: top;
40 }
40 }
41
41
42 .tag {
42 .tag {
43 color: #FFD37D;
43 color: #FFD37D;
44 }
44 }
45
45
46 .post_id {
46 .post_id {
47 color: #fff380;
47 color: #fff380;
48 }
48 }
49
49
50 .post, .dead_post, .archive_post, #posts-table {
50 .post, .dead_post, .archive_post, #posts-table {
51 background: #333;
51 background: #333;
52 padding: 10px;
52 padding: 10px;
53 clear: left;
53 clear: left;
54 word-wrap: break-word;
54 word-wrap: break-word;
55 border-top: 1px solid #777;
55 border-top: 1px solid #777;
56 border-bottom: 1px solid #777;
56 border-bottom: 1px solid #777;
57 }
57 }
58
58
59 .post + .post {
59 .post + .post {
60 border-top: none;
60 border-top: none;
61 }
61 }
62
62
63 .dead_post + .dead_post {
63 .dead_post + .dead_post {
64 border-top: none;
64 border-top: none;
65 }
65 }
66
66
67 .archive_post + .archive_post {
67 .archive_post + .archive_post {
68 border-top: none;
68 border-top: none;
69 }
69 }
70
70
71 .metadata {
71 .metadata {
72 padding-top: 5px;
72 padding-top: 5px;
73 margin-top: 10px;
73 margin-top: 10px;
74 border-top: solid 1px #666;
74 border-top: solid 1px #666;
75 color: #ddd;
75 color: #ddd;
76 }
76 }
77
77
78 .navigation_panel, .tag_info {
78 .navigation_panel, .tag_info {
79 background: #222;
79 background: #222;
80 margin-bottom: 5px;
80 margin-bottom: 5px;
81 margin-top: 5px;
81 margin-top: 5px;
82 padding: 10px;
82 padding: 10px;
83 border-bottom: solid 1px #888;
83 border-bottom: solid 1px #888;
84 border-top: solid 1px #888;
84 border-top: solid 1px #888;
85 color: #eee;
85 color: #eee;
86 }
86 }
87
87
88 .navigation_panel .link {
88 .navigation_panel .link {
89 border-right: 1px solid #fff;
89 border-right: 1px solid #fff;
90 font-weight: bold;
90 font-weight: bold;
91 margin-right: 1ex;
91 margin-right: 1ex;
92 padding-right: 1ex;
92 padding-right: 1ex;
93 }
93 }
94 .navigation_panel .link:last-child {
94 .navigation_panel .link:last-child {
95 border-left: 1px solid #fff;
95 border-left: 1px solid #fff;
96 border-right: none;
96 border-right: none;
97 float: right;
97 float: right;
98 margin-left: 1ex;
98 margin-left: 1ex;
99 margin-right: 0;
99 margin-right: 0;
100 padding-left: 1ex;
100 padding-left: 1ex;
101 padding-right: 0;
101 padding-right: 0;
102 }
102 }
103
103
104 .navigation_panel::after, .post::after {
104 .navigation_panel::after, .post::after {
105 clear: both;
105 clear: both;
106 content: ".";
106 content: ".";
107 display: block;
107 display: block;
108 height: 0;
108 height: 0;
109 line-height: 0;
109 line-height: 0;
110 visibility: hidden;
110 visibility: hidden;
111 }
111 }
112
112
113 .header {
113 .header {
114 border-bottom: solid 2px #ccc;
114 border-bottom: solid 2px #ccc;
115 margin-bottom: 5px;
115 margin-bottom: 5px;
116 border-top: none;
116 border-top: none;
117 margin-top: 0;
117 margin-top: 0;
118 }
118 }
119
119
120 .footer {
120 .footer {
121 border-top: solid 2px #ccc;
121 border-top: solid 2px #ccc;
122 margin-top: 5px;
122 margin-top: 5px;
123 border-bottom: none;
123 border-bottom: none;
124 margin-bottom: 0;
124 margin-bottom: 0;
125 }
125 }
126
126
127 p, .br {
127 p, .br {
128 margin-top: .5em;
128 margin-top: .5em;
129 margin-bottom: .5em;
129 margin-bottom: .5em;
130 }
130 }
131
131
132 .post-form-w {
132 .post-form-w {
133 background: #333344;
133 background: #333344;
134 border-top: solid 1px #888;
134 border-top: solid 1px #888;
135 border-bottom: solid 1px #888;
135 border-bottom: solid 1px #888;
136 color: #fff;
136 color: #fff;
137 padding: 10px;
137 padding: 10px;
138 margin-bottom: 5px;
138 margin-bottom: 5px;
139 margin-top: 5px;
139 margin-top: 5px;
140 }
140 }
141
141
142 .form-row {
142 .form-row {
143 width: 100%;
143 width: 100%;
144 }
144 }
145
145
146 .form-label {
146 .form-label {
147 padding: .25em 1ex .25em 0;
147 padding: .25em 1ex .25em 0;
148 vertical-align: top;
148 vertical-align: top;
149 }
149 }
150
150
151 .form-input {
151 .form-input {
152 padding: .25em 0;
152 padding: .25em 0;
153 }
153 }
154
154
155 .form-errors {
155 .form-errors {
156 font-weight: bolder;
156 font-weight: bolder;
157 vertical-align: middle;
157 vertical-align: middle;
158 }
158 }
159
159
160 .post-form input:not([name="image"]), .post-form textarea {
160 .post-form input:not([name="image"]), .post-form textarea {
161 background: #333;
161 background: #333;
162 color: #fff;
162 color: #fff;
163 border: solid 1px;
163 border: solid 1px;
164 padding: 0;
164 padding: 0;
165 font: medium sans-serif;
165 font: medium sans-serif;
166 width: 100%;
166 width: 100%;
167 }
167 }
168
168
169 .post-form textarea {
169 .post-form textarea {
170 resize: vertical;
170 resize: vertical;
171 }
171 }
172
172
173 .form-submit {
173 .form-submit {
174 display: table;
174 display: table;
175 margin-bottom: 1ex;
175 margin-bottom: 1ex;
176 margin-top: 1ex;
176 margin-top: 1ex;
177 }
177 }
178
178
179 .form-title {
179 .form-title {
180 font-weight: bold;
180 font-weight: bold;
181 font-size: 2ex;
181 font-size: 2ex;
182 margin-bottom: 0.5ex;
182 margin-bottom: 0.5ex;
183 }
183 }
184
184
185 .post-form input[type="submit"], input[type="submit"] {
185 .post-form input[type="submit"], input[type="submit"] {
186 background: #222;
186 background: #222;
187 border: solid 2px #fff;
187 border: solid 2px #fff;
188 color: #fff;
188 color: #fff;
189 padding: 0.5ex;
189 padding: 0.5ex;
190 }
190 }
191
191
192 input[type="submit"]:hover {
192 input[type="submit"]:hover {
193 background: #060;
193 background: #060;
194 }
194 }
195
195
196 blockquote {
196 blockquote {
197 border-left: solid 2px;
197 border-left: solid 2px;
198 padding-left: 5px;
198 padding-left: 5px;
199 color: #B1FB17;
199 color: #B1FB17;
200 margin: 0;
200 margin: 0;
201 }
201 }
202
202
203 .post > .image {
203 .post > .image {
204 float: left;
204 float: left;
205 margin: 0 1ex .5ex 0;
205 margin: 0 1ex .5ex 0;
206 min-width: 1px;
206 min-width: 1px;
207 text-align: center;
207 text-align: center;
208 display: table-row;
208 display: table-row;
209 }
209 }
210
210
211 .post > .metadata {
211 .post > .metadata {
212 clear: left;
212 clear: left;
213 }
213 }
214
214
215 .get {
215 .get {
216 font-weight: bold;
216 font-weight: bold;
217 color: #d55;
217 color: #d55;
218 }
218 }
219
219
220 * {
220 * {
221 text-decoration: none;
221 text-decoration: none;
222 }
222 }
223
223
224 .dead_post {
224 .dead_post {
225 background-color: #442222;
225 background-color: #442222;
226 }
226 }
227
227
228 .archive_post {
228 .archive_post {
229 background-color: #000;
229 background-color: #000;
230 }
230 }
231
231
232 .mark_btn {
232 .mark_btn {
233 border: 1px solid;
233 border: 1px solid;
234 min-width: 2ex;
234 min-width: 2ex;
235 padding: 2px 2ex;
235 padding: 2px 2ex;
236 }
236 }
237
237
238 .mark_btn:hover {
238 .mark_btn:hover {
239 background: #555;
239 background: #555;
240 }
240 }
241
241
242 .quote {
242 .quote {
243 color: #92cf38;
243 color: #92cf38;
244 font-style: italic;
244 font-style: italic;
245 }
245 }
246
246
247 .multiquote {
247 .multiquote {
248 padding: 3px;
248 padding: 3px;
249 display: inline-block;
249 display: inline-block;
250 background: #222;
250 background: #222;
251 border-style: solid;
251 border-style: solid;
252 border-width: 1px 1px 1px 4px;
252 border-width: 1px 1px 1px 4px;
253 font-size: 0.9em;
253 font-size: 0.9em;
254 }
254 }
255
255
256 .spoiler {
256 .spoiler {
257 background: white;
257 background: white;
258 color: white;
258 color: white;
259 }
259 }
260
260
261 .spoiler:hover {
261 .spoiler:hover {
262 color: black;
262 color: black;
263 }
263 }
264
264
265 .comment {
265 .comment {
266 color: #eb2;
266 color: #eb2;
267 }
267 }
268
268
269 a:hover {
269 a:hover {
270 text-decoration: underline;
270 text-decoration: underline;
271 }
271 }
272
272
273 .last-replies {
273 .last-replies {
274 margin-left: 3ex;
274 margin-left: 3ex;
275 margin-right: 3ex;
275 margin-right: 3ex;
276 border-left: solid 1px #777;
276 border-left: solid 1px #777;
277 border-right: solid 1px #777;
277 border-right: solid 1px #777;
278 }
278 }
279
279
280 .last-replies > .post:first-child {
280 .last-replies > .post:first-child {
281 border-top: none;
281 border-top: none;
282 }
282 }
283
283
284 .thread {
284 .thread {
285 margin-bottom: 3ex;
285 margin-bottom: 3ex;
286 margin-top: 1ex;
286 margin-top: 1ex;
287 }
287 }
288
288
289 .post:target {
289 .post:target {
290 border: solid 2px white;
290 border: solid 2px white;
291 }
291 }
292
292
293 pre{
293 pre{
294 white-space:pre-wrap
294 white-space:pre-wrap
295 }
295 }
296
296
297 li {
297 li {
298 list-style-position: inside;
298 list-style-position: inside;
299 }
299 }
300
300
301 .fancybox-skin {
301 .fancybox-skin {
302 position: relative;
302 position: relative;
303 background-color: #fff;
303 background-color: #fff;
304 color: #ddd;
304 color: #ddd;
305 text-shadow: none;
305 text-shadow: none;
306 }
306 }
307
307
308 .fancybox-image {
308 .fancybox-image {
309 border: 1px solid black;
309 border: 1px solid black;
310 }
310 }
311
311
312 .image-mode-tab {
312 .image-mode-tab {
313 background: #444;
313 background: #444;
314 color: #eee;
314 color: #eee;
315 margin-top: 5px;
315 margin-top: 5px;
316 padding: 5px;
316 padding: 5px;
317 border-top: 1px solid #888;
317 border-top: 1px solid #888;
318 border-bottom: 1px solid #888;
318 border-bottom: 1px solid #888;
319 }
319 }
320
320
321 .image-mode-tab > label {
321 .image-mode-tab > label {
322 margin: 0 1ex;
322 margin: 0 1ex;
323 }
323 }
324
324
325 .image-mode-tab > label > input {
325 .image-mode-tab > label > input {
326 margin-right: .5ex;
326 margin-right: .5ex;
327 }
327 }
328
328
329 #posts-table {
329 #posts-table {
330 margin-top: 5px;
330 margin-top: 5px;
331 margin-bottom: 5px;
331 margin-bottom: 5px;
332 }
332 }
333
333
334 .tag_info > h2 {
334 .tag_info > h2 {
335 margin: 0;
335 margin: 0;
336 }
336 }
337
337
338 .post-info {
338 .post-info {
339 color: #ddd;
339 color: #ddd;
340 margin-bottom: 1ex;
340 margin-bottom: 1ex;
341 }
341 }
342
342
343 .moderator_info {
343 .moderator_info {
344 color: #e99d41;
344 color: #e99d41;
345 float: right;
345 float: right;
346 font-weight: bold;
346 font-weight: bold;
347 opacity: 0.4;
348 }
349
350 .moderator_info:hover {
351 opacity: 1;
347 }
352 }
348
353
349 .refmap {
354 .refmap {
350 font-size: 0.9em;
355 font-size: 0.9em;
351 color: #ccc;
356 color: #ccc;
352 margin-top: 1em;
357 margin-top: 1em;
353 }
358 }
354
359
355 .fav {
360 .fav {
356 color: yellow;
361 color: yellow;
357 }
362 }
358
363
359 .not_fav {
364 .not_fav {
360 color: #ccc;
365 color: #ccc;
361 }
366 }
362
367
363 .role {
368 .role {
364 text-decoration: underline;
369 text-decoration: underline;
365 }
370 }
366
371
367 .form-email {
372 .form-email {
368 display: none;
373 display: none;
369 }
374 }
370
375
371 .bar-value {
376 .bar-value {
372 background: rgba(50, 55, 164, 0.45);
377 background: rgba(50, 55, 164, 0.45);
373 font-size: 0.9em;
378 font-size: 0.9em;
374 height: 1.5em;
379 height: 1.5em;
375 }
380 }
376
381
377 .bar-bg {
382 .bar-bg {
378 position: relative;
383 position: relative;
379 border-top: solid 1px #888;
384 border-top: solid 1px #888;
380 border-bottom: solid 1px #888;
385 border-bottom: solid 1px #888;
381 margin-top: 5px;
386 margin-top: 5px;
382 overflow: hidden;
387 overflow: hidden;
383 }
388 }
384
389
385 .bar-text {
390 .bar-text {
386 padding: 2px;
391 padding: 2px;
387 position: absolute;
392 position: absolute;
388 left: 0;
393 left: 0;
389 top: 0;
394 top: 0;
390 }
395 }
391
396
392 .page_link {
397 .page_link {
393 background: #444;
398 background: #444;
394 border-top: solid 1px #888;
399 border-top: solid 1px #888;
395 border-bottom: solid 1px #888;
400 border-bottom: solid 1px #888;
396 padding: 5px;
401 padding: 5px;
397 color: #eee;
402 color: #eee;
398 font-size: 2ex;
403 font-size: 2ex;
399 }
404 }
400
405
401 .skipped_replies {
406 .skipped_replies {
402 padding: 5px;
407 padding: 5px;
403 margin-left: 3ex;
408 margin-left: 3ex;
404 margin-right: 3ex;
409 margin-right: 3ex;
405 border-left: solid 1px #888;
410 border-left: solid 1px #888;
406 border-right: solid 1px #888;
411 border-right: solid 1px #888;
407 border-bottom: solid 1px #888;
412 border-bottom: solid 1px #888;
408 background: #000;
413 background: #000;
409 }
414 }
410
415
411 .current_page {
416 .current_page {
412 padding: 2px;
417 padding: 2px;
413 background-color: #afdcec;
418 background-color: #afdcec;
414 color: #000;
419 color: #000;
415 }
420 }
416
421
417 .current_mode {
422 .current_mode {
418 font-weight: bold;
423 font-weight: bold;
419 }
424 }
420
425
421 .gallery_image {
426 .gallery_image {
422 border: solid 1px;
427 border: solid 1px;
423 padding: 0.5ex;
428 padding: 0.5ex;
424 margin: 0.5ex;
429 margin: 0.5ex;
425 text-align: center;
430 text-align: center;
426 }
431 }
427
432
428 code {
433 code {
429 border: dashed 1px #ccc;
434 border: dashed 1px #ccc;
430 background: #111;
435 background: #111;
431 padding: 2px;
436 padding: 2px;
432 font-size: 1.2em;
437 font-size: 1.2em;
433 display: inline-block;
438 display: inline-block;
434 }
439 }
435
440
436 pre {
441 pre {
437 overflow: auto;
442 overflow: auto;
438 }
443 }
439
444
440 .img-full {
445 .img-full {
441 background: #222;
446 background: #222;
442 border: solid 1px white;
447 border: solid 1px white;
443 }
448 }
444
449
445 .tag_item {
450 .tag_item {
446 display: inline-block;
451 display: inline-block;
447 margin: 0.2ex;
452 margin: 0.2ex;
448 padding: 0.1ex;
453 padding: 0.1ex;
449 }
454 }
450
455
451 #id_models li {
456 #id_models li {
452 list-style: none;
457 list-style: none;
453 }
458 }
454
459
455 #id_q {
460 #id_q {
456 margin-left: 1ex;
461 margin-left: 1ex;
457 }
462 }
458
463
459 ul {
464 ul {
460 padding-left: 0px;
465 padding-left: 0px;
461 }
466 }
462
467
463 .quote-header {
468 .quote-header {
464 border-bottom: 2px solid #ddd;
469 border-bottom: 2px solid #ddd;
465 margin-bottom: 1ex;
470 margin-bottom: 1ex;
466 padding-bottom: .5ex;
471 padding-bottom: .5ex;
467 color: #ddd;
472 color: #ddd;
468 font-size: 1.2em;
473 font-size: 1.2em;
469 }
474 }
470
475
471 /* Reflink preview */
476 /* Reflink preview */
472 .post_preview {
477 .post_preview {
473 border-left: 1px solid #777;
478 border-left: 1px solid #777;
474 border-right: 1px solid #777;
479 border-right: 1px solid #777;
475 }
480 }
476
481
477 /* Code highlighter */
482 /* Code highlighter */
478 .hljs {
483 .hljs {
479 color: #fff;
484 color: #fff;
480 background: #000;
485 background: #000;
481 display: inline-block;
486 display: inline-block;
482 }
487 }
483
488
484 .hljs, .hljs-subst, .hljs-tag .hljs-title, .lisp .hljs-title, .clojure .hljs-built_in, .nginx .hljs-title {
489 .hljs, .hljs-subst, .hljs-tag .hljs-title, .lisp .hljs-title, .clojure .hljs-built_in, .nginx .hljs-title {
485 color: #fff;
490 color: #fff;
486 }
491 }
@@ -1,203 +1,203 b''
1 {% extends "boards/base.html" %}
1 {% extends "boards/base.html" %}
2
2
3 {% load i18n %}
3 {% load i18n %}
4 {% load cache %}
4 {% load cache %}
5 {% load board %}
5 {% load board %}
6 {% load static %}
6 {% load static %}
7
7
8 {% block head %}
8 {% block head %}
9 {% if tag %}
9 {% if tag %}
10 <title>{{ tag.name }} - {{ site_name }}</title>
10 <title>{{ tag.name }} - {{ site_name }}</title>
11 {% else %}
11 {% else %}
12 <title>{{ site_name }}</title>
12 <title>{{ site_name }}</title>
13 {% endif %}
13 {% endif %}
14
14
15 {% if current_page.has_previous %}
15 {% if current_page.has_previous %}
16 <link rel="prev" href="
16 <link rel="prev" href="
17 {% if tag %}
17 {% if tag %}
18 {% url "tag" tag_name=tag.name page=current_page.previous_page_number %}
18 {% url "tag" tag_name=tag.name page=current_page.previous_page_number %}
19 {% elif archived %}
19 {% elif archived %}
20 {% url "archive" page=current_page.previous_page_number %}
20 {% url "archive" page=current_page.previous_page_number %}
21 {% else %}
21 {% else %}
22 {% url "index" page=current_page.previous_page_number %}
22 {% url "index" page=current_page.previous_page_number %}
23 {% endif %}
23 {% endif %}
24 " />
24 " />
25 {% endif %}
25 {% endif %}
26 {% if current_page.has_next %}
26 {% if current_page.has_next %}
27 <link rel="next" href="
27 <link rel="next" href="
28 {% if tag %}
28 {% if tag %}
29 {% url "tag" tag_name=tag.name page=current_page.next_page_number %}
29 {% url "tag" tag_name=tag.name page=current_page.next_page_number %}
30 {% elif archived %}
30 {% elif archived %}
31 {% url "archive" page=current_page.next_page_number %}
31 {% url "archive" page=current_page.next_page_number %}
32 {% else %}
32 {% else %}
33 {% url "index" page=current_page.next_page_number %}
33 {% url "index" page=current_page.next_page_number %}
34 {% endif %}
34 {% endif %}
35 " />
35 " />
36 {% endif %}
36 {% endif %}
37
37
38 {% endblock %}
38 {% endblock %}
39
39
40 {% block content %}
40 {% block content %}
41
41
42 {% get_current_language as LANGUAGE_CODE %}
42 {% get_current_language as LANGUAGE_CODE %}
43
43
44 {% if tag %}
44 {% if tag %}
45 <div class="tag_info">
45 <div class="tag_info">
46 <h2>
46 <h2>
47 {% if tag in fav_tags %}
47 {% if tag in fav_tags %}
48 <a href="{% url 'tag' tag.name %}?method=unsubscribe&next={{ request.path }}"
48 <a href="{% url 'tag' tag.name %}?method=unsubscribe&next={{ request.path }}"
49 class="fav" rel="nofollow">β˜…</a>
49 class="fav" rel="nofollow">β˜…</a>
50 {% else %}
50 {% else %}
51 <a href="{% url 'tag' tag.name %}?method=subscribe&next={{ request.path }}"
51 <a href="{% url 'tag' tag.name %}?method=subscribe&next={{ request.path }}"
52 class="not_fav" rel="nofollow">β˜…</a>
52 class="not_fav" rel="nofollow">β˜…</a>
53 {% endif %}
53 {% endif %}
54 {% if tag in hidden_tags %}
54 {% if tag in hidden_tags %}
55 <a href="{% url 'tag' tag.name %}?method=unhide&next={{ request.path }}"
55 <a href="{% url 'tag' tag.name %}?method=unhide&next={{ request.path }}"
56 title="{% trans 'Show tag' %}"
56 title="{% trans 'Show tag' %}"
57 class="fav" rel="nofollow">H</a>
57 class="fav" rel="nofollow">H</a>
58 {% else %}
58 {% else %}
59 <a href="{% url 'tag' tag.name %}?method=hide&next={{ request.path }}"
59 <a href="{% url 'tag' tag.name %}?method=hide&next={{ request.path }}"
60 title="{% trans 'Hide tag' %}"
60 title="{% trans 'Hide tag' %}"
61 class="not_fav" rel="nofollow">H</a>
61 class="not_fav" rel="nofollow">H</a>
62 {% endif %}
62 {% endif %}
63 {% autoescape off %}
63 {% autoescape off %}
64 {{ tag.get_view }}
64 {{ tag.get_view }}
65 {% endautoescape %}
65 {% endautoescape %}
66 {% if moderator %}
66 {% if moderator %}
67 [<a href="{% url 'admin:boards_tag_change' tag.id %}">{% trans 'Edit tag' %}</a>]
67 <span class="moderator_info">[<a href="{% url 'admin:boards_tag_change' tag.id %}">{% trans 'Edit tag' %}</a>]</span>
68 {% endif %}
68 {% endif %}
69 </h2>
69 </h2>
70 <p>{% blocktrans with thread_count=tag.get_thread_count post_count=tag.get_post_count %}This tag has {{ thread_count }} threads and {{ post_count }} posts.{% endblocktrans %}</p>
70 <p>{% blocktrans with thread_count=tag.get_thread_count post_count=tag.get_post_count %}This tag has {{ thread_count }} threads and {{ post_count }} posts.{% endblocktrans %}</p>
71 </div>
71 </div>
72 {% endif %}
72 {% endif %}
73
73
74 {% if threads %}
74 {% if threads %}
75 {% if current_page.has_previous %}
75 {% if current_page.has_previous %}
76 <div class="page_link">
76 <div class="page_link">
77 <a href="
77 <a href="
78 {% if tag %}
78 {% if tag %}
79 {% url "tag" tag_name=tag.name page=current_page.previous_page_number %}
79 {% url "tag" tag_name=tag.name page=current_page.previous_page_number %}
80 {% elif archived %}
80 {% elif archived %}
81 {% url "archive" page=current_page.previous_page_number %}
81 {% url "archive" page=current_page.previous_page_number %}
82 {% else %}
82 {% else %}
83 {% url "index" page=current_page.previous_page_number %}
83 {% url "index" page=current_page.previous_page_number %}
84 {% endif %}
84 {% endif %}
85 ">{% trans "Previous page" %}</a>
85 ">{% trans "Previous page" %}</a>
86 </div>
86 </div>
87 {% endif %}
87 {% endif %}
88
88
89 {% for thread in threads %}
89 {% for thread in threads %}
90 {% cache 600 thread_short thread.id thread.last_edit_time moderator LANGUAGE_CODE %}
90 {% cache 600 thread_short thread.id thread.last_edit_time moderator LANGUAGE_CODE %}
91 <div class="thread">
91 <div class="thread">
92 {% with can_bump=thread.can_bump %}
92 {% with can_bump=thread.can_bump %}
93 {% post_view thread.get_opening_post moderator is_opening=True thread=thread can_bump=can_bump truncated=True need_open_link=True %}
93 {% post_view thread.get_opening_post moderator is_opening=True thread=thread can_bump=can_bump truncated=True need_open_link=True %}
94 {% if not thread.archived %}
94 {% if not thread.archived %}
95 {% with last_replies=thread.get_last_replies %}
95 {% with last_replies=thread.get_last_replies %}
96 {% if last_replies %}
96 {% if last_replies %}
97 {% if thread.get_skipped_replies_count %}
97 {% if thread.get_skipped_replies_count %}
98 <div class="skipped_replies">
98 <div class="skipped_replies">
99 <a href="{% url 'thread' thread.get_opening_post.id %}">
99 <a href="{% url 'thread' thread.get_opening_post.id %}">
100 {% blocktrans with count=thread.get_skipped_replies_count %}Skipped {{ count }} replies. Open thread to see all replies.{% endblocktrans %}
100 {% blocktrans with count=thread.get_skipped_replies_count %}Skipped {{ count }} replies. Open thread to see all replies.{% endblocktrans %}
101 </a>
101 </a>
102 </div>
102 </div>
103 {% endif %}
103 {% endif %}
104 <div class="last-replies">
104 <div class="last-replies">
105 {% for post in last_replies %}
105 {% for post in last_replies %}
106 {% post_view post moderator=moderator is_opening=False thread=thread can_bump=can_bump truncated=True %}
106 {% post_view post moderator=moderator is_opening=False thread=thread can_bump=can_bump truncated=True %}
107 {% endfor %}
107 {% endfor %}
108 </div>
108 </div>
109 {% endif %}
109 {% endif %}
110 {% endwith %}
110 {% endwith %}
111 {% endif %}
111 {% endif %}
112 {% endwith %}
112 {% endwith %}
113 </div>
113 </div>
114 {% endcache %}
114 {% endcache %}
115 {% endfor %}
115 {% endfor %}
116
116
117 {% if current_page.has_next %}
117 {% if current_page.has_next %}
118 <div class="page_link">
118 <div class="page_link">
119 <a href="
119 <a href="
120 {% if tag %}
120 {% if tag %}
121 {% url "tag" tag_name=tag.name page=current_page.next_page_number %}
121 {% url "tag" tag_name=tag.name page=current_page.next_page_number %}
122 {% elif archived %}
122 {% elif archived %}
123 {% url "archive" page=current_page.next_page_number %}
123 {% url "archive" page=current_page.next_page_number %}
124 {% else %}
124 {% else %}
125 {% url "index" page=current_page.next_page_number %}
125 {% url "index" page=current_page.next_page_number %}
126 {% endif %}
126 {% endif %}
127 ">{% trans "Next page" %}</a>
127 ">{% trans "Next page" %}</a>
128 </div>
128 </div>
129 {% endif %}
129 {% endif %}
130 {% else %}
130 {% else %}
131 <div class="post">
131 <div class="post">
132 {% trans 'No threads exist. Create the first one!' %}</div>
132 {% trans 'No threads exist. Create the first one!' %}</div>
133 {% endif %}
133 {% endif %}
134
134
135 <div class="post-form-w">
135 <div class="post-form-w">
136 <script src="{% static 'js/panel.js' %}"></script>
136 <script src="{% static 'js/panel.js' %}"></script>
137 <div class="post-form">
137 <div class="post-form">
138 <div class="form-title">{% trans "Create new thread" %}</div>
138 <div class="form-title">{% trans "Create new thread" %}</div>
139 <div class="swappable-form-full">
139 <div class="swappable-form-full">
140 <form enctype="multipart/form-data" method="post">{% csrf_token %}
140 <form enctype="multipart/form-data" method="post">{% csrf_token %}
141 {{ form.as_div }}
141 {{ form.as_div }}
142 <div class="form-submit">
142 <div class="form-submit">
143 <input type="submit" value="{% trans "Post" %}"/>
143 <input type="submit" value="{% trans "Post" %}"/>
144 </div>
144 </div>
145 </form>
145 </form>
146 </div>
146 </div>
147 <div>
147 <div>
148 {% trans 'Tags must be delimited by spaces. Text or image is required.' %}
148 {% trans 'Tags must be delimited by spaces. Text or image is required.' %}
149 </div>
149 </div>
150 <div><a href="{% url "staticpage" name="help" %}">
150 <div><a href="{% url "staticpage" name="help" %}">
151 {% trans 'Text syntax' %}</a></div>
151 {% trans 'Text syntax' %}</a></div>
152 </div>
152 </div>
153 </div>
153 </div>
154
154
155 <script src="{% static 'js/form.js' %}"></script>
155 <script src="{% static 'js/form.js' %}"></script>
156
156
157 {% endblock %}
157 {% endblock %}
158
158
159 {% block metapanel %}
159 {% block metapanel %}
160
160
161 <span class="metapanel">
161 <span class="metapanel">
162 <b><a href="{% url "authors" %}">{{ site_name }}</a> {{ version }}</b>
162 <b><a href="{% url "authors" %}">{{ site_name }}</a> {{ version }}</b>
163 {% trans "Pages:" %}
163 {% trans "Pages:" %}
164 <a href="
164 <a href="
165 {% if tag %}
165 {% if tag %}
166 {% url "tag" tag_name=tag.name page=paginator.page_range|first %}
166 {% url "tag" tag_name=tag.name page=paginator.page_range|first %}
167 {% elif archived %}
167 {% elif archived %}
168 {% url "archive" page=paginator.page_range|first %}
168 {% url "archive" page=paginator.page_range|first %}
169 {% else %}
169 {% else %}
170 {% url "index" page=paginator.page_range|first %}
170 {% url "index" page=paginator.page_range|first %}
171 {% endif %}
171 {% endif %}
172 ">&lt;&lt;</a>
172 ">&lt;&lt;</a>
173 [
173 [
174 {% for page in paginator.center_range %}
174 {% for page in paginator.center_range %}
175 <a
175 <a
176 {% ifequal page current_page.number %}
176 {% ifequal page current_page.number %}
177 class="current_page"
177 class="current_page"
178 {% endifequal %}
178 {% endifequal %}
179 href="
179 href="
180 {% if tag %}
180 {% if tag %}
181 {% url "tag" tag_name=tag.name page=page %}
181 {% url "tag" tag_name=tag.name page=page %}
182 {% elif archived %}
182 {% elif archived %}
183 {% url "archive" page=page %}
183 {% url "archive" page=page %}
184 {% else %}
184 {% else %}
185 {% url "index" page=page %}
185 {% url "index" page=page %}
186 {% endif %}
186 {% endif %}
187 ">{{ page }}</a>
187 ">{{ page }}</a>
188 {% if not forloop.last %},{% endif %}
188 {% if not forloop.last %},{% endif %}
189 {% endfor %}
189 {% endfor %}
190 ]
190 ]
191 <a href="
191 <a href="
192 {% if tag %}
192 {% if tag %}
193 {% url "tag" tag_name=tag.name page=paginator.page_range|last %}
193 {% url "tag" tag_name=tag.name page=paginator.page_range|last %}
194 {% elif archived %}
194 {% elif archived %}
195 {% url "archive" page=paginator.page_range|last %}
195 {% url "archive" page=paginator.page_range|last %}
196 {% else %}
196 {% else %}
197 {% url "index" page=paginator.page_range|last %}
197 {% url "index" page=paginator.page_range|last %}
198 {% endif %}
198 {% endif %}
199 ">&gt;&gt;</a>
199 ">&gt;&gt;</a>
200 [<a href="rss/">RSS</a>]
200 [<a href="rss/">RSS</a>]
201 </span>
201 </span>
202
202
203 {% endblock %}
203 {% endblock %}
General Comments 0
You need to be logged in to leave comments. Login now