##// END OF EJS Templates
Don't show borders around tags in all tags view
neko259 -
r952:b93829b1 default
parent child Browse files
Show More
@@ -1,487 +1,486 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 {
6 b {
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 }
347 }
348
348
349 .refmap {
349 .refmap {
350 font-size: 0.9em;
350 font-size: 0.9em;
351 color: #ccc;
351 color: #ccc;
352 margin-top: 1em;
352 margin-top: 1em;
353 }
353 }
354
354
355 .fav {
355 .fav {
356 color: yellow;
356 color: yellow;
357 }
357 }
358
358
359 .not_fav {
359 .not_fav {
360 color: #ccc;
360 color: #ccc;
361 }
361 }
362
362
363 .role {
363 .role {
364 text-decoration: underline;
364 text-decoration: underline;
365 }
365 }
366
366
367 .form-email {
367 .form-email {
368 display: none;
368 display: none;
369 }
369 }
370
370
371 .bar-value {
371 .bar-value {
372 background: rgba(50, 55, 164, 0.45);
372 background: rgba(50, 55, 164, 0.45);
373 font-size: 0.9em;
373 font-size: 0.9em;
374 height: 1.5em;
374 height: 1.5em;
375 }
375 }
376
376
377 .bar-bg {
377 .bar-bg {
378 position: relative;
378 position: relative;
379 border-top: solid 1px #888;
379 border-top: solid 1px #888;
380 border-bottom: solid 1px #888;
380 border-bottom: solid 1px #888;
381 margin-top: 5px;
381 margin-top: 5px;
382 overflow: hidden;
382 overflow: hidden;
383 }
383 }
384
384
385 .bar-text {
385 .bar-text {
386 padding: 2px;
386 padding: 2px;
387 position: absolute;
387 position: absolute;
388 left: 0;
388 left: 0;
389 top: 0;
389 top: 0;
390 }
390 }
391
391
392 .page_link {
392 .page_link {
393 background: #444;
393 background: #444;
394 border-top: solid 1px #888;
394 border-top: solid 1px #888;
395 border-bottom: solid 1px #888;
395 border-bottom: solid 1px #888;
396 padding: 5px;
396 padding: 5px;
397 color: #eee;
397 color: #eee;
398 font-size: 2ex;
398 font-size: 2ex;
399 }
399 }
400
400
401 .skipped_replies {
401 .skipped_replies {
402 padding: 5px;
402 padding: 5px;
403 margin-left: 3ex;
403 margin-left: 3ex;
404 margin-right: 3ex;
404 margin-right: 3ex;
405 border-left: solid 1px #888;
405 border-left: solid 1px #888;
406 border-right: solid 1px #888;
406 border-right: solid 1px #888;
407 border-bottom: solid 1px #888;
407 border-bottom: solid 1px #888;
408 background: #000;
408 background: #000;
409 }
409 }
410
410
411 .current_page {
411 .current_page {
412 padding: 2px;
412 padding: 2px;
413 background-color: #afdcec;
413 background-color: #afdcec;
414 color: #000;
414 color: #000;
415 }
415 }
416
416
417 .current_mode {
417 .current_mode {
418 font-weight: bold;
418 font-weight: bold;
419 }
419 }
420
420
421 .gallery_image {
421 .gallery_image {
422 border: solid 1px;
422 border: solid 1px;
423 padding: 0.5ex;
423 padding: 0.5ex;
424 margin: 0.5ex;
424 margin: 0.5ex;
425 text-align: center;
425 text-align: center;
426 }
426 }
427
427
428 code {
428 code {
429 border: dashed 1px #ccc;
429 border: dashed 1px #ccc;
430 background: #111;
430 background: #111;
431 padding: 2px;
431 padding: 2px;
432 font-size: 1.2em;
432 font-size: 1.2em;
433 display: inline-block;
433 display: inline-block;
434 }
434 }
435
435
436 pre {
436 pre {
437 overflow: auto;
437 overflow: auto;
438 }
438 }
439
439
440 .img-full {
440 .img-full {
441 background: #222;
441 background: #222;
442 border: solid 1px white;
442 border: solid 1px white;
443 }
443 }
444
444
445 .tag_item {
445 .tag_item {
446 display: inline-block;
446 display: inline-block;
447 border: 1px dashed #666;
448 margin: 0.2ex;
447 margin: 0.2ex;
449 padding: 0.1ex;
448 padding: 0.1ex;
450 }
449 }
451
450
452 #id_models li {
451 #id_models li {
453 list-style: none;
452 list-style: none;
454 }
453 }
455
454
456 #id_q {
455 #id_q {
457 margin-left: 1ex;
456 margin-left: 1ex;
458 }
457 }
459
458
460 ul {
459 ul {
461 padding-left: 0px;
460 padding-left: 0px;
462 }
461 }
463
462
464 .quote-header {
463 .quote-header {
465 border-bottom: 2px solid #ddd;
464 border-bottom: 2px solid #ddd;
466 margin-bottom: 1ex;
465 margin-bottom: 1ex;
467 padding-bottom: .5ex;
466 padding-bottom: .5ex;
468 color: #ddd;
467 color: #ddd;
469 font-size: 1.2em;
468 font-size: 1.2em;
470 }
469 }
471
470
472 /* Reflink preview */
471 /* Reflink preview */
473 .post_preview {
472 .post_preview {
474 border-left: 1px solid #777;
473 border-left: 1px solid #777;
475 border-right: 1px solid #777;
474 border-right: 1px solid #777;
476 }
475 }
477
476
478 /* Code highlighter */
477 /* Code highlighter */
479 .hljs {
478 .hljs {
480 color: #fff;
479 color: #fff;
481 background: #000;
480 background: #000;
482 display: inline-block;
481 display: inline-block;
483 }
482 }
484
483
485 .hljs, .hljs-subst, .hljs-tag .hljs-title, .lisp .hljs-title, .clojure .hljs-built_in, .nginx .hljs-title {
484 .hljs, .hljs-subst, .hljs-tag .hljs-title, .lisp .hljs-title, .clojure .hljs-built_in, .nginx .hljs-title {
486 color: #fff;
485 color: #fff;
487 }
486 }
@@ -1,202 +1,202 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 [<a href="{% url 'admin:boards_tag_change' tag.id %}">{% trans 'Edit tag' %}</a>]
68 {% endif %}
68 {% endif %}
69 </h2>
69 </h2>
70 </div>
70 </div>
71 {% endif %}
71 {% endif %}
72
72
73 {% if threads %}
73 {% if threads %}
74 {% if current_page.has_previous %}
74 {% if current_page.has_previous %}
75 <div class="page_link">
75 <div class="page_link">
76 <a href="
76 <a href="
77 {% if tag %}
77 {% if tag %}
78 {% url "tag" tag_name=tag.name page=current_page.previous_page_number %}
78 {% url "tag" tag_name=tag.name page=current_page.previous_page_number %}
79 {% elif archived %}
79 {% elif archived %}
80 {% url "archive" page=current_page.previous_page_number %}
80 {% url "archive" page=current_page.previous_page_number %}
81 {% else %}
81 {% else %}
82 {% url "index" page=current_page.previous_page_number %}
82 {% url "index" page=current_page.previous_page_number %}
83 {% endif %}
83 {% endif %}
84 ">{% trans "Previous page" %}</a>
84 ">{% trans "Previous page" %}</a>
85 </div>
85 </div>
86 {% endif %}
86 {% endif %}
87
87
88 {% for thread in threads %}
88 {% for thread in threads %}
89 {% cache 600 thread_short thread.id thread.last_edit_time moderator LANGUAGE_CODE %}
89 {% cache 600 thread_short thread.id thread.last_edit_time moderator LANGUAGE_CODE %}
90 <div class="thread">
90 <div class="thread">
91 {% with can_bump=thread.can_bump %}
91 {% with can_bump=thread.can_bump %}
92 {% post_view thread.get_opening_post moderator is_opening=True thread=thread can_bump=can_bump truncated=True need_open_link=True %}
92 {% post_view thread.get_opening_post moderator is_opening=True thread=thread can_bump=can_bump truncated=True need_open_link=True %}
93 {% if not thread.archived %}
93 {% if not thread.archived %}
94 {% with last_replies=thread.get_last_replies %}
94 {% with last_replies=thread.get_last_replies %}
95 {% if last_replies %}
95 {% if last_replies %}
96 {% if thread.get_skipped_replies_count %}
96 {% if thread.get_skipped_replies_count %}
97 <div class="skipped_replies">
97 <div class="skipped_replies">
98 <a href="{% url 'thread' thread.get_opening_post.id %}">
98 <a href="{% url 'thread' thread.get_opening_post.id %}">
99 {% blocktrans with count=thread.get_skipped_replies_count %}Skipped {{ count }} replies. Open thread to see all replies.{% endblocktrans %}
99 {% blocktrans with count=thread.get_skipped_replies_count %}Skipped {{ count }} replies. Open thread to see all replies.{% endblocktrans %}
100 </a>
100 </a>
101 </div>
101 </div>
102 {% endif %}
102 {% endif %}
103 <div class="last-replies">
103 <div class="last-replies">
104 {% for post in last_replies %}
104 {% for post in last_replies %}
105 {% post_view post moderator=moderator is_opening=False thread=thread can_bump=can_bump truncated=True %}
105 {% post_view post moderator=moderator is_opening=False thread=thread can_bump=can_bump truncated=True %}
106 {% endfor %}
106 {% endfor %}
107 </div>
107 </div>
108 {% endif %}
108 {% endif %}
109 {% endwith %}
109 {% endwith %}
110 {% endif %}
110 {% endif %}
111 {% endwith %}
111 {% endwith %}
112 </div>
112 </div>
113 {% endcache %}
113 {% endcache %}
114 {% endfor %}
114 {% endfor %}
115
115
116 {% if current_page.has_next %}
116 {% if current_page.has_next %}
117 <div class="page_link">
117 <div class="page_link">
118 <a href="
118 <a href="
119 {% if tag %}
119 {% if tag %}
120 {% url "tag" tag_name=tag.name page=current_page.next_page_number %}
120 {% url "tag" tag_name=tag.name page=current_page.next_page_number %}
121 {% elif archived %}
121 {% elif archived %}
122 {% url "archive" page=current_page.next_page_number %}
122 {% url "archive" page=current_page.next_page_number %}
123 {% else %}
123 {% else %}
124 {% url "index" page=current_page.next_page_number %}
124 {% url "index" page=current_page.next_page_number %}
125 {% endif %}
125 {% endif %}
126 ">{% trans "Next page" %}</a>
126 ">{% trans "Next page" %}</a>
127 </div>
127 </div>
128 {% endif %}
128 {% endif %}
129 {% else %}
129 {% else %}
130 <div class="post">
130 <div class="post">
131 {% trans 'No threads exist. Create the first one!' %}</div>
131 {% trans 'No threads exist. Create the first one!' %}</div>
132 {% endif %}
132 {% endif %}
133
133
134 <div class="post-form-w">
134 <div class="post-form-w">
135 <script src="{% static 'js/panel.js' %}"></script>
135 <script src="{% static 'js/panel.js' %}"></script>
136 <div class="post-form">
136 <div class="post-form">
137 <div class="form-title">{% trans "Create new thread" %}</div>
137 <div class="form-title">{% trans "Create new thread" %}</div>
138 <div class="swappable-form-full">
138 <div class="swappable-form-full">
139 <form enctype="multipart/form-data" method="post">{% csrf_token %}
139 <form enctype="multipart/form-data" method="post">{% csrf_token %}
140 {{ form.as_div }}
140 {{ form.as_div }}
141 <div class="form-submit">
141 <div class="form-submit">
142 <input type="submit" value="{% trans "Post" %}"/>
142 <input type="submit" value="{% trans "Post" %}"/>
143 </div>
143 </div>
144 </form>
144 </form>
145 </div>
145 </div>
146 <div>
146 <div>
147 {% trans 'Tags must be delimited by spaces. Text or image is required.' %}
147 {% trans 'Tags must be delimited by spaces. Text or image is required.' %}
148 </div>
148 </div>
149 <div><a href="{% url "staticpage" name="help" %}">
149 <div><a href="{% url "staticpage" name="help" %}">
150 {% trans 'Text syntax' %}</a></div>
150 {% trans 'Text syntax' %}</a></div>
151 </div>
151 </div>
152 </div>
152 </div>
153
153
154 <script src="{% static 'js/form.js' %}"></script>
154 <script src="{% static 'js/form.js' %}"></script>
155
155
156 {% endblock %}
156 {% endblock %}
157
157
158 {% block metapanel %}
158 {% block metapanel %}
159
159
160 <span class="metapanel">
160 <span class="metapanel">
161 <b><a href="{% url "authors" %}">{{ site_name }}</a> {{ version }}</b>
161 <b><a href="{% url "authors" %}">{{ site_name }}</a> {{ version }}</b>
162 {% trans "Pages:" %}
162 {% trans "Pages:" %}
163 <a href="
163 <a href="
164 {% if tag %}
164 {% if tag %}
165 {% url "tag" tag_name=tag.name page=paginator.page_range|first %}
165 {% url "tag" tag_name=tag.name page=paginator.page_range|first %}
166 {% elif archived %}
166 {% elif archived %}
167 {% url "archive" page=paginator.page_range|first %}
167 {% url "archive" page=paginator.page_range|first %}
168 {% else %}
168 {% else %}
169 {% url "index" page=paginator.page_range|first %}
169 {% url "index" page=paginator.page_range|first %}
170 {% endif %}
170 {% endif %}
171 ">&lt;&lt;</a>
171 ">&lt;&lt;</a>
172 [
172 [
173 {% for page in paginator.center_range %}
173 {% for page in paginator.center_range %}
174 <a
174 <a
175 {% ifequal page current_page.number %}
175 {% ifequal page current_page.number %}
176 class="current_page"
176 class="current_page"
177 {% endifequal %}
177 {% endifequal %}
178 href="
178 href="
179 {% if tag %}
179 {% if tag %}
180 {% url "tag" tag_name=tag.name page=page %}
180 {% url "tag" tag_name=tag.name page=page %}
181 {% elif archived %}
181 {% elif archived %}
182 {% url "archive" page=page %}
182 {% url "archive" page=page %}
183 {% else %}
183 {% else %}
184 {% url "index" page=page %}
184 {% url "index" page=page %}
185 {% endif %}
185 {% endif %}
186 ">{{ page }}</a>
186 ">{{ page }}</a>
187 {% if not forloop.last %},{% endif %}
187 {% if not forloop.last %},{% endif %}
188 {% endfor %}
188 {% endfor %}
189 ]
189 ]
190 <a href="
190 <a href="
191 {% if tag %}
191 {% if tag %}
192 {% url "tag" tag_name=tag.name page=paginator.page_range|last %}
192 {% url "tag" tag_name=tag.name page=paginator.page_range|last %}
193 {% elif archived %}
193 {% elif archived %}
194 {% url "archive" page=paginator.page_range|last %}
194 {% url "archive" page=paginator.page_range|last %}
195 {% else %}
195 {% else %}
196 {% url "index" page=paginator.page_range|last %}
196 {% url "index" page=paginator.page_range|last %}
197 {% endif %}
197 {% endif %}
198 ">&gt;&gt;</a>
198 ">&gt;&gt;</a>
199 [<a href="rss/">RSS</a>]
199 [<a href="rss/">RSS</a>]
200 </span>
200 </span>
201
201
202 {% endblock %}
202 {% endblock %}
General Comments 0
You need to be logged in to leave comments. Login now