##// END OF EJS Templates
Show thread OPs in the landing page instead of link and title list
neko259 -
r1793:9acfb664 default
parent child Browse files
Show More
@@ -1,584 +1,590 b''
1 1 * {
2 2 text-decoration: none;
3 3 font-weight: inherit;
4 4 }
5 5
6 6 b, strong {
7 7 font-weight: bold;
8 8 }
9 9
10 10 html {
11 11 background: #555;
12 12 color: #ffffff;
13 13 }
14 14
15 15 body {
16 16 margin: 0;
17 17 }
18 18
19 19 #admin_panel {
20 20 background: #FF0000;
21 21 color: #00FF00
22 22 }
23 23
24 24 .input_field_error {
25 25 color: #FF0000;
26 26 }
27 27
28 28 .title {
29 29 font-weight: bold;
30 30 color: #ffcc00;
31 31 }
32 32
33 33 .link, a {
34 34 color: #afdcec;
35 35 }
36 36
37 37 .block {
38 38 display: inline-block;
39 39 vertical-align: top;
40 40 }
41 41
42 42 .tag {
43 43 color: #FFD37D;
44 44 }
45 45
46 46 .post_id {
47 47 color: #fff380;
48 48 }
49 49
50 50 .post, .dead_post, .archive_post, #posts-table {
51 51 background: #333;
52 52 padding: 10px;
53 53 clear: left;
54 54 word-wrap: break-word;
55 55 border-top: 1px solid #777;
56 56 border-bottom: 1px solid #777;
57 57 }
58 58
59 59 .post + .post {
60 60 border-top: none;
61 61 }
62 62
63 63 .dead_post + .dead_post {
64 64 border-top: none;
65 65 }
66 66
67 67 .archive_post + .archive_post {
68 68 border-top: none;
69 69 }
70 70
71 71 .metadata {
72 72 padding-top: 5px;
73 73 margin-top: 10px;
74 74 border-top: solid 1px #666;
75 75 color: #ddd;
76 76 }
77 77
78 78 .navigation_panel, .tag_info {
79 79 background: #222;
80 80 margin-bottom: 5px;
81 81 margin-top: 5px;
82 82 padding: 10px;
83 83 border-bottom: solid 1px #888;
84 84 border-top: solid 1px #888;
85 85 color: #eee;
86 86 }
87 87
88 88 .navigation_panel .link:first-child {
89 89 border-right: 1px solid #fff;
90 90 font-weight: bold;
91 91 margin-right: 1ex;
92 92 padding-right: 1ex;
93 93 }
94 94
95 95 .navigation_panel .right-link {
96 96 border-left: 1px solid #fff;
97 97 border-right: none;
98 98 float: right;
99 99 margin-left: 1ex;
100 100 margin-right: 0;
101 101 padding-left: 1ex;
102 102 padding-right: 0;
103 103 }
104 104
105 105 .navigation_panel .link {
106 106 font-weight: bold;
107 107 }
108 108
109 109 .navigation_panel::after, .post::after {
110 110 clear: both;
111 111 content: ".";
112 112 display: block;
113 113 height: 0;
114 114 line-height: 0;
115 115 visibility: hidden;
116 116 }
117 117
118 118 .tag_info {
119 119 text-align: center;
120 120 }
121 121
122 122 .tag_info > .tag-text-data {
123 123 text-align: left;
124 124 max-width: 30em;
125 125 }
126 126
127 127 header.navigation_panel {
128 128 border-bottom: solid 2px #ccc;
129 129 margin-bottom: 5px;
130 130 border-top: none;
131 131 margin-top: 0;
132 132 }
133 133
134 134 footer.navigation_panel {
135 135 border-top: solid 2px #ccc;
136 136 margin-top: 5px;
137 137 border-bottom: none;
138 138 margin-bottom: 0;
139 139 }
140 140
141 141 p, .br {
142 142 margin-top: .5em;
143 143 margin-bottom: .5em;
144 144 }
145 145
146 146 .post-form-w {
147 147 background: #333344;
148 148 border-top: solid 1px #888;
149 149 border-bottom: solid 1px #888;
150 150 color: #fff;
151 151 padding: 10px;
152 152 margin-bottom: 5px;
153 153 margin-top: 5px;
154 154 }
155 155
156 156 .form-row {
157 157 width: 100%;
158 158 display: table-row;
159 159 }
160 160
161 161 .form-label {
162 162 padding: .25em 1ex .25em 0;
163 163 vertical-align: top;
164 164 display: table-cell;
165 165 }
166 166
167 167 .form-input {
168 168 padding: .25em 0;
169 169 width: 100%;
170 170 display: table-cell;
171 171 }
172 172
173 173 .form-errors {
174 174 font-weight: bolder;
175 175 vertical-align: middle;
176 176 display: table-cell;
177 177 }
178 178
179 179 .post-form input:not([name="image"]):not([type="checkbox"]):not([type="submit"]), .post-form textarea, .post-form select {
180 180 background: #333;
181 181 color: #fff;
182 182 border: solid 1px;
183 183 padding: 0;
184 184 font: medium sans-serif;
185 185 width: 100%;
186 186 }
187 187
188 188 .post-form textarea {
189 189 resize: vertical;
190 190 }
191 191
192 192 .form-submit {
193 193 display: table;
194 194 margin-bottom: 1ex;
195 195 margin-top: 1ex;
196 196 }
197 197
198 198 .form-title {
199 199 font-weight: bold;
200 200 font-size: 2ex;
201 201 margin-bottom: 0.5ex;
202 202 }
203 203
204 204 input[type="submit"], button {
205 205 background: #222;
206 206 border: solid 2px #fff;
207 207 color: #fff;
208 208 padding: 0.5ex;
209 209 margin-right: 0.5ex;
210 210 }
211 211
212 212 input[type="submit"]:hover {
213 213 background: #060;
214 214 }
215 215
216 216 .form-submit > button:hover {
217 217 background: #006;
218 218 }
219 219
220 220 blockquote {
221 221 border-left: solid 2px;
222 222 padding-left: 5px;
223 223 color: #B1FB17;
224 224 margin: 0;
225 225 }
226 226
227 227 .post > .image {
228 228 float: left;
229 229 margin: 0 1ex .5ex 0;
230 230 min-width: 1px;
231 231 text-align: center;
232 232 display: table-row;
233 233 }
234 234
235 235 .post > .metadata {
236 236 clear: left;
237 237 }
238 238
239 239 .get {
240 240 font-weight: bold;
241 241 color: #d55;
242 242 }
243 243
244 244 * {
245 245 text-decoration: none;
246 246 }
247 247
248 248 .dead_post > .post-info {
249 249 font-style: italic;
250 250 }
251 251
252 252 .archive_post > .post-info {
253 253 text-decoration: line-through;
254 254 }
255 255
256 256 .mark_btn {
257 257 border: 1px solid;
258 258 padding: 2px 2ex;
259 259 display: inline-block;
260 260 margin: 0 5px 4px 0;
261 261 }
262 262
263 263 .mark_btn:hover {
264 264 background: #555;
265 265 }
266 266
267 267 .quote {
268 268 color: #92cf38;
269 269 font-style: italic;
270 270 }
271 271
272 272 .multiquote {
273 273 padding: 3px;
274 274 display: inline-block;
275 275 background: #222;
276 276 border-style: solid;
277 277 border-width: 1px 1px 1px 4px;
278 278 font-size: 0.9em;
279 279 }
280 280
281 281 .spoiler {
282 282 background: black;
283 283 color: black;
284 284 }
285 285
286 286 .spoiler:hover {
287 287 color: #ddd;
288 288 }
289 289
290 290 .comment {
291 291 color: #eb2;
292 292 }
293 293
294 294 a:hover {
295 295 text-decoration: underline;
296 296 }
297 297
298 298 .last-replies {
299 299 margin-left: 3ex;
300 300 margin-right: 3ex;
301 301 border-left: solid 1px #777;
302 302 border-right: solid 1px #777;
303 303 }
304 304
305 305 .last-replies > .post:first-child {
306 306 border-top: none;
307 307 }
308 308
309 309 .thread {
310 310 margin-bottom: 3ex;
311 311 margin-top: 1ex;
312 312 }
313 313
314 314 .post:target {
315 315 border: solid 2px white;
316 316 }
317 317
318 318 pre{
319 319 white-space:pre-wrap
320 320 }
321 321
322 322 li {
323 323 list-style-position: inside;
324 324 }
325 325
326 326 .fancybox-skin {
327 327 position: relative;
328 328 background-color: #fff;
329 329 color: #ddd;
330 330 text-shadow: none;
331 331 }
332 332
333 333 .fancybox-image {
334 334 border: 1px solid black;
335 335 }
336 336
337 337 .image-mode-tab {
338 338 background: #444;
339 339 color: #eee;
340 340 margin-top: 5px;
341 341 padding: 5px;
342 342 border-top: 1px solid #888;
343 343 border-bottom: 1px solid #888;
344 344 }
345 345
346 346 .image-mode-tab > label {
347 347 margin: 0 1ex;
348 348 }
349 349
350 350 .image-mode-tab > label > input {
351 351 margin-right: .5ex;
352 352 }
353 353
354 354 #posts-table {
355 355 margin-top: 5px;
356 356 margin-bottom: 5px;
357 357 }
358 358
359 359 .tag-text-data > h2 {
360 360 margin: 0;
361 361 font-size: 2.5em;
362 362 }
363 363
364 364 .post-info {
365 365 color: #ddd;
366 366 margin-bottom: 1ex;
367 367 }
368 368
369 369 .moderator_info {
370 370 color: #e99d41;
371 371 opacity: 0.4;
372 372 }
373 373
374 374 .moderator_info:hover {
375 375 opacity: 1;
376 376 }
377 377
378 378 .refmap {
379 379 font-size: 0.9em;
380 380 color: #ccc;
381 381 margin-top: 1em;
382 382 }
383 383
384 384 .fav {
385 385 color: yellow;
386 386 }
387 387
388 388 .not_fav {
389 389 color: #ccc;
390 390 }
391 391
392 392 .form-email {
393 393 display: none;
394 394 }
395 395
396 396 .bar-value {
397 397 background: rgba(50, 55, 164, 0.45);
398 398 font-size: 0.9em;
399 399 height: 1.5em;
400 400 }
401 401
402 402 .bar-bg {
403 403 position: relative;
404 404 border-top: solid 1px #888;
405 405 border-bottom: solid 1px #888;
406 406 margin-top: 5px;
407 407 overflow: hidden;
408 408 }
409 409
410 410 .bar-text {
411 411 padding: 2px;
412 412 position: absolute;
413 413 left: 0;
414 414 top: 0;
415 415 }
416 416
417 417 .page_link {
418 418 background: #444;
419 419 border-top: solid 1px #888;
420 420 border-bottom: solid 1px #888;
421 421 padding: 5px;
422 422 color: #eee;
423 423 font-size: 2ex;
424 424 margin-top: .5ex;
425 425 margin-bottom: .5ex;
426 426 }
427 427
428 428 .skipped_replies {
429 429 padding: 5px;
430 430 margin-left: 3ex;
431 431 margin-right: 3ex;
432 432 border-left: solid 1px #888;
433 433 border-right: solid 1px #888;
434 434 border-bottom: solid 1px #888;
435 435 background: #000;
436 436 }
437 437
438 438 .current_page {
439 439 padding: 2px;
440 440 background-color: #afdcec;
441 441 color: #000;
442 442 }
443 443
444 444 .current_mode {
445 445 font-weight: bold;
446 446 }
447 447
448 448 .gallery_image {
449 449 border: solid 1px #999;
450 450 margin: 0.5ex;
451 451 text-align: center;
452 452 padding: 1ex;
453 453 }
454 454
455 455 code {
456 456 border: dashed 1px #ccc;
457 457 background: #111;
458 458 padding: 2px;
459 459 font-size: 1.2em;
460 460 display: inline-block;
461 461 }
462 462
463 463 pre {
464 464 overflow: auto;
465 465 }
466 466
467 467 .img-full {
468 468 background: #222;
469 469 border: solid 1px white;
470 470 }
471 471
472 472 .tag_item {
473 473 display: inline-block;
474 474 }
475 475
476 476 #id_models li {
477 477 list-style: none;
478 478 }
479 479
480 480 #id_q {
481 481 margin-left: 1ex;
482 482 }
483 483
484 484 ul {
485 485 padding-left: 0px;
486 486 }
487 487
488 488 .quote-header {
489 489 border-bottom: 2px solid #ddd;
490 490 margin-bottom: 1ex;
491 491 padding-bottom: .5ex;
492 492 color: #ddd;
493 493 font-size: 1.2em;
494 494 }
495 495
496 496 .global-id {
497 497 font-weight: bolder;
498 498 opacity: .5;
499 499 }
500 500
501 501 /* Reflink preview */
502 502 .post_preview {
503 503 border-left: 1px solid #777;
504 504 border-right: 1px solid #777;
505 505 max-width: 600px;
506 506 }
507 507
508 508 /* Code highlighter */
509 509 .hljs {
510 510 color: #fff;
511 511 background: #000;
512 512 display: inline-block;
513 513 }
514 514
515 515 .hljs, .hljs-subst, .hljs-tag .hljs-title, .lisp .hljs-title, .clojure .hljs-built_in, .nginx .hljs-title {
516 516 color: #fff;
517 517 }
518 518
519 519 #up {
520 520 position: fixed;
521 521 bottom: 5px;
522 522 right: 5px;
523 523 border: 1px solid #777;
524 524 background: #000;
525 525 padding: 4px;
526 526 opacity: 0.3;
527 527 }
528 528
529 529 #up:hover {
530 530 opacity: 1;
531 531 }
532 532
533 533 .user-cast {
534 534 border: solid #ffffff 1px;
535 535 padding: .2ex;
536 536 background: #152154;
537 537 color: #fff;
538 538 }
539 539
540 540 .highlight {
541 541 background: #222;
542 542 }
543 543
544 544 .post-button-form > button:hover {
545 545 text-decoration: underline;
546 546 }
547 547
548 548 .tree_reply > .post {
549 549 margin-top: 1ex;
550 550 border-left: solid 1px #777;
551 551 padding-right: 0;
552 552 }
553 553
554 554 #preview-text {
555 555 border: solid 1px white;
556 556 margin: 1ex 0 1ex 0;
557 557 padding: 1ex;
558 558 }
559 559
560 560 .image-metadata {
561 561 font-size: 0.9em;
562 562 }
563 563
564 564 .tripcode {
565 565 color: white;
566 566 }
567 567
568 568 #fav-panel {
569 569 border: 1px solid white;
570 570 }
571 571
572 572 .post-blink {
573 573 background-color: #000;
574 574 }
575 575
576 576 #quote-button {
577 577 background-color: black;
578 578 border: solid white 1px;
579 579 padding: 2px;
580 580 }
581 581
582 582 #quote-button:hover {
583 583 background-color: #2d3955;
584 584 }
585
586 .landing-threads > .thread {
587 border-left: solid 1px #777;
588 border-right: solid 1px #777;
589 }
590
@@ -1,38 +1,41 b''
1 1 {% extends "boards/base.html" %}
2 2
3 3 {% load i18n %}
4 4 {% load static %}
5 {% load board %}
5 6
6 7 {% block head %}
7 8 <title>{{ site_name }}</title>
8 9 {% endblock %}
9 10
10 11 {% block content %}
11 12 <div id="posts-table">
12 13 <div class="landing-images">
13 14 {% for image in images %}
14 15 <div class="gallery_image">
15 16 {{ image.get_view|safe }}
16 17 {% with image.get_random_associated_post as post %}
17 18 {{ post.get_link_view|safe }}
18 19 {% endwith %}
19 20 </div>
20 21 {% endfor %}
21 22 </div>
22 23 <br />
23 24 <div class="landing-tags">
24 25 {{ section_str|safe }}
25 26 </div>
26 27 <br />
27 28 <div class="landing-threads">
28 29 {% if latest_threads %}
29 30 {% trans "Active threads:" %}<br />
30 31 {% for op in latest_threads %}
31 {{ op.get_link_view|safe }} {{ op.get_title_or_text }} ({{ op.thread.get_sections_str|safe }}) +{{ op.today_post_count }}<br />
32 <div class="thread">
33 {% post_view op truncated=True need_open_link=True %}
34 </div>
32 35 {% endfor %}
33 36 {% else %}
34 37 {% trans "No active threads today." %}
35 38 {% endif %}
36 39 </div>
37 40 </div>
38 41 {% endblock %}
General Comments 0
You need to be logged in to leave comments. Login now