##// END OF EJS Templates
Prettier moderator action links in MD theme
neko259 -
r1261:474504ea default
parent child Browse files
Show More
@@ -1,549 +1,547 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 .header {
119 119 border-bottom: solid 2px #ccc;
120 120 margin-bottom: 5px;
121 121 border-top: none;
122 122 margin-top: 0;
123 123 }
124 124
125 125 .footer {
126 126 border-top: solid 2px #ccc;
127 127 margin-top: 5px;
128 128 border-bottom: none;
129 129 margin-bottom: 0;
130 130 }
131 131
132 132 p, .br {
133 133 margin-top: .5em;
134 134 margin-bottom: .5em;
135 135 }
136 136
137 137 .post-form-w {
138 138 background: #333344;
139 139 border-top: solid 1px #888;
140 140 border-bottom: solid 1px #888;
141 141 color: #fff;
142 142 padding: 10px;
143 143 margin-bottom: 5px;
144 144 margin-top: 5px;
145 145 }
146 146
147 147 .form-row {
148 148 width: 100%;
149 149 display: table-row;
150 150 }
151 151
152 152 .form-label {
153 153 padding: .25em 1ex .25em 0;
154 154 vertical-align: top;
155 155 display: table-cell;
156 156 }
157 157
158 158 .form-input {
159 159 padding: .25em 0;
160 160 width: 100%;
161 161 display: table-cell;
162 162 }
163 163
164 164 .form-errors {
165 165 font-weight: bolder;
166 166 vertical-align: middle;
167 167 display: table-cell;
168 168 }
169 169
170 170 .post-form input:not([name="image"]), .post-form textarea, .post-form select {
171 171 background: #333;
172 172 color: #fff;
173 173 border: solid 1px;
174 174 padding: 0;
175 175 font: medium sans-serif;
176 176 width: 100%;
177 177 }
178 178
179 179 .post-form textarea {
180 180 resize: vertical;
181 181 }
182 182
183 183 .form-submit {
184 184 display: table;
185 185 margin-bottom: 1ex;
186 186 margin-top: 1ex;
187 187 }
188 188
189 189 .form-title {
190 190 font-weight: bold;
191 191 font-size: 2ex;
192 192 margin-bottom: 0.5ex;
193 193 }
194 194
195 195 .post-form input[type="submit"], input[type="submit"] {
196 196 background: #222;
197 197 border: solid 2px #fff;
198 198 color: #fff;
199 199 padding: 0.5ex;
200 200 }
201 201
202 202 input[type="submit"]:hover {
203 203 background: #060;
204 204 }
205 205
206 206 blockquote {
207 207 border-left: solid 2px;
208 208 padding-left: 5px;
209 209 color: #B1FB17;
210 210 margin: 0;
211 211 }
212 212
213 213 .post > .image {
214 214 float: left;
215 215 margin: 0 1ex .5ex 0;
216 216 min-width: 1px;
217 217 text-align: center;
218 218 display: table-row;
219 219 }
220 220
221 221 .post > .metadata {
222 222 clear: left;
223 223 }
224 224
225 225 .get {
226 226 font-weight: bold;
227 227 color: #d55;
228 228 }
229 229
230 230 * {
231 231 text-decoration: none;
232 232 }
233 233
234 234 .dead_post {
235 235 border-left: solid 5px #982C2C;
236 236 }
237 237
238 238 .archive_post {
239 239 border-left: solid 5px #B7B7B7;
240 240 }
241 241
242 242 .mark_btn {
243 243 border: 1px solid;
244 244 padding: 2px 2ex;
245 245 display: inline-block;
246 246 margin: 0 5px 4px 0;
247 247 }
248 248
249 249 .mark_btn:hover {
250 250 background: #555;
251 251 }
252 252
253 253 .quote {
254 254 color: #92cf38;
255 255 font-style: italic;
256 256 }
257 257
258 258 .multiquote {
259 259 padding: 3px;
260 260 display: inline-block;
261 261 background: #222;
262 262 border-style: solid;
263 263 border-width: 1px 1px 1px 4px;
264 264 font-size: 0.9em;
265 265 }
266 266
267 267 .spoiler {
268 268 background: black;
269 269 color: black;
270 270 padding: 0 1ex 0 1ex;
271 271 }
272 272
273 273 .spoiler:hover {
274 274 color: #ddd;
275 275 }
276 276
277 277 .comment {
278 278 color: #eb2;
279 279 }
280 280
281 281 a:hover {
282 282 text-decoration: underline;
283 283 }
284 284
285 285 .last-replies {
286 286 margin-left: 3ex;
287 287 margin-right: 3ex;
288 288 border-left: solid 1px #777;
289 289 border-right: solid 1px #777;
290 290 }
291 291
292 292 .last-replies > .post:first-child {
293 293 border-top: none;
294 294 }
295 295
296 296 .thread {
297 297 margin-bottom: 3ex;
298 298 margin-top: 1ex;
299 299 }
300 300
301 301 .post:target {
302 302 border: solid 2px white;
303 303 }
304 304
305 305 pre{
306 306 white-space:pre-wrap
307 307 }
308 308
309 309 li {
310 310 list-style-position: inside;
311 311 }
312 312
313 313 .fancybox-skin {
314 314 position: relative;
315 315 background-color: #fff;
316 316 color: #ddd;
317 317 text-shadow: none;
318 318 }
319 319
320 320 .fancybox-image {
321 321 border: 1px solid black;
322 322 }
323 323
324 324 .image-mode-tab {
325 325 background: #444;
326 326 color: #eee;
327 327 margin-top: 5px;
328 328 padding: 5px;
329 329 border-top: 1px solid #888;
330 330 border-bottom: 1px solid #888;
331 331 }
332 332
333 333 .image-mode-tab > label {
334 334 margin: 0 1ex;
335 335 }
336 336
337 337 .image-mode-tab > label > input {
338 338 margin-right: .5ex;
339 339 }
340 340
341 341 #posts-table {
342 342 margin-top: 5px;
343 343 margin-bottom: 5px;
344 344 }
345 345
346 346 .tag_info > h2 {
347 347 margin: 0;
348 348 }
349 349
350 350 .post-info {
351 351 color: #ddd;
352 352 margin-bottom: 1ex;
353 353 }
354 354
355 355 .moderator_info {
356 356 color: #e99d41;
357 float: right;
358 font-weight: bold;
359 357 opacity: 0.4;
360 358 }
361 359
362 360 .moderator_info:hover {
363 361 opacity: 1;
364 362 }
365 363
366 364 .refmap {
367 365 font-size: 0.9em;
368 366 color: #ccc;
369 367 margin-top: 1em;
370 368 }
371 369
372 370 .fav {
373 371 color: yellow;
374 372 }
375 373
376 374 .not_fav {
377 375 color: #ccc;
378 376 }
379 377
380 378 .role {
381 379 text-decoration: underline;
382 380 }
383 381
384 382 .form-email {
385 383 display: none;
386 384 }
387 385
388 386 .bar-value {
389 387 background: rgba(50, 55, 164, 0.45);
390 388 font-size: 0.9em;
391 389 height: 1.5em;
392 390 }
393 391
394 392 .bar-bg {
395 393 position: relative;
396 394 border-top: solid 1px #888;
397 395 border-bottom: solid 1px #888;
398 396 margin-top: 5px;
399 397 overflow: hidden;
400 398 }
401 399
402 400 .bar-text {
403 401 padding: 2px;
404 402 position: absolute;
405 403 left: 0;
406 404 top: 0;
407 405 }
408 406
409 407 .page_link {
410 408 background: #444;
411 409 border-top: solid 1px #888;
412 410 border-bottom: solid 1px #888;
413 411 padding: 5px;
414 412 color: #eee;
415 413 font-size: 2ex;
416 414 }
417 415
418 416 .skipped_replies {
419 417 padding: 5px;
420 418 margin-left: 3ex;
421 419 margin-right: 3ex;
422 420 border-left: solid 1px #888;
423 421 border-right: solid 1px #888;
424 422 border-bottom: solid 1px #888;
425 423 background: #000;
426 424 }
427 425
428 426 .current_page {
429 427 padding: 2px;
430 428 background-color: #afdcec;
431 429 color: #000;
432 430 }
433 431
434 432 .current_mode {
435 433 font-weight: bold;
436 434 }
437 435
438 436 .gallery_image {
439 437 border: solid 1px;
440 438 padding: 0.5ex;
441 439 margin: 0.5ex;
442 440 text-align: center;
443 441 }
444 442
445 443 code {
446 444 border: dashed 1px #ccc;
447 445 background: #111;
448 446 padding: 2px;
449 447 font-size: 1.2em;
450 448 display: inline-block;
451 449 }
452 450
453 451 pre {
454 452 overflow: auto;
455 453 }
456 454
457 455 .img-full {
458 456 background: #222;
459 457 border: solid 1px white;
460 458 }
461 459
462 460 .tag_item {
463 461 display: inline-block;
464 462 }
465 463
466 464 #id_models li {
467 465 list-style: none;
468 466 }
469 467
470 468 #id_q {
471 469 margin-left: 1ex;
472 470 }
473 471
474 472 ul {
475 473 padding-left: 0px;
476 474 }
477 475
478 476 .quote-header {
479 477 border-bottom: 2px solid #ddd;
480 478 margin-bottom: 1ex;
481 479 padding-bottom: .5ex;
482 480 color: #ddd;
483 481 font-size: 1.2em;
484 482 }
485 483
486 484 /* Reflink preview */
487 485 .post_preview {
488 486 border-left: 1px solid #777;
489 487 border-right: 1px solid #777;
490 488 max-width: 600px;
491 489 }
492 490
493 491 /* Code highlighter */
494 492 .hljs {
495 493 color: #fff;
496 494 background: #000;
497 495 display: inline-block;
498 496 }
499 497
500 498 .hljs, .hljs-subst, .hljs-tag .hljs-title, .lisp .hljs-title, .clojure .hljs-built_in, .nginx .hljs-title {
501 499 color: #fff;
502 500 }
503 501
504 502 #up {
505 503 position: fixed;
506 504 bottom: 5px;
507 505 right: 5px;
508 506 border: 1px solid #777;
509 507 background: #000;
510 508 padding: 4px;
511 509 }
512 510
513 511 .user-cast {
514 512 border: solid #ffffff 1px;
515 513 padding: .2ex;
516 514 background: #152154;
517 515 color: #fff;
518 516 }
519 517
520 518 .highlight {
521 519 background-color: #222;
522 520 }
523 521
524 522 .post-button-form > button:hover {
525 523 text-decoration: underline;
526 524 }
527 525
528 526 .tree_reply > .post {
529 527 margin-top: 1ex;
530 528 border-left: solid 1px #777;
531 529 padding-right: 0;
532 530 }
533 531
534 532 #preview-text {
535 533 border: solid 1px white;
536 534 margin: 1ex 0 1ex 0;
537 535 padding: 1ex;
538 536 }
539 537
540 538 button {
541 539 border: 1px solid white;
542 540 margin-bottom: .5ex;
543 541 margin-top: .5ex;
544 542 }
545 543
546 544 .image-metadata {
547 545 font-style: italic;
548 546 font-size: 0.9em;
549 } No newline at end of file
547 }
@@ -1,103 +1,103 b''
1 1 {% load i18n %}
2 2 {% load board %}
3 3
4 4 {% get_current_language as LANGUAGE_CODE %}
5 5
6 6 <div class="{{ css_class }}" id="{{ post.id }}" data-uid="{{ post.uid }}">
7 7 <div class="post-info">
8 8 <a class="post_id" href="{{ post.get_absolute_url }}">({{ post.get_absolute_id }})</a>
9 9 <span class="title">{{ post.title }}</span>
10 10 <span class="pub_time"><time datetime="{{ post.pub_time|date:'c' }}">{{ post.pub_time }}</time></span>
11 11 {% comment %}
12 12 Thread death time needs to be shown only if the thread is alredy archived
13 13 and this is an opening post (thread death time) or a post for popup
14 14 (we don't see OP here so we show the death time in the post itself).
15 15 {% endcomment %}
16 16 {% if thread.archived %}
17 17 {% if is_opening %}
18 18 β€” <time datetime="{{ thread.bump_time|date:'c' }}">{{ thread.bump_time }}</time>
19 19 {% endif %}
20 20 {% endif %}
21 21 {% if is_opening %}
22 22 {% if need_open_link %}
23 23 {% if thread.archived %}
24 24 <a class="link" href="{% url 'thread' post.id %}">{% trans "Open" %}</a>
25 25 {% else %}
26 26 <a class="link" href="{% url 'thread' post.id %}#form">{% trans "Reply" %}</a>
27 27 {% endif %}
28 28 {% endif %}
29 29 {% else %}
30 30 {% if need_op_data %}
31 31 {% with thread.get_opening_post as op %}
32 32 {% trans " in " %}<a href="{{ op.get_absolute_url }}">&gt;&gt;{{ op.id }}</a> <span class="title">{{ op.get_title|striptags|truncatewords:5 }}</span>
33 33 {% endwith %}
34 34 {% endif %}
35 35 {% endif %}
36 36 {% if reply_link and not thread.archived %}
37 37 <a href="#form" onclick="addQuickReply('{{ post.id }}'); return false;">{% trans 'Reply' %}</a>
38 38 {% endif %}
39 39
40 40 {% if moderator %}
41 41 <span class="moderator_info">
42 <a href="{% url 'admin:boards_post_change' post.id %}">{% trans 'Edit' %}</a>
42 | <a href="{% url 'admin:boards_post_change' post.id %}">{% trans 'Edit' %}</a>
43 43 {% if is_opening %}
44 | <a href="{% url 'admin:boards_thread_change' thread.id %}">{% trans 'Edit thread' %}</a>
44 | <a href="{% url 'admin:boards_thread_change' thread.id %}">{% trans 'Edit thread' %}</a>
45 45 {% endif %}
46 46 </span>
47 47 {% endif %}
48 48 </div>
49 49 {% comment %}
50 50 Post images. Currently only 1 image can be posted and shown, but post model
51 51 supports multiple.
52 52 {% endcomment %}
53 53 {% if post.images.exists %}
54 54 {% with post.images.all.0 as image %}
55 55 {% autoescape off %}
56 56 {{ image.get_view }}
57 57 {% endautoescape %}
58 58 {% endwith %}
59 59 {% endif %}
60 60 {% comment %}
61 61 Post message (text)
62 62 {% endcomment %}
63 63 <div class="message">
64 64 {% autoescape off %}
65 65 {% if truncated %}
66 66 {{ post.get_text|truncatewords_html:50 }}
67 67 {% else %}
68 68 {{ post.get_text }}
69 69 {% endif %}
70 70 {% endautoescape %}
71 71 {% if post.is_referenced %}
72 72 {% if mode_tree %}
73 73 <div class="tree_reply">
74 74 {% for refpost in post.get_referenced_posts %}
75 75 {% post_view refpost mode_tree=True %}
76 76 {% endfor %}
77 77 </div>
78 78 {% else %}
79 79 <div class="refmap">
80 80 {% autoescape off %}
81 81 {% trans "Replies" %}: {{ post.refmap }}
82 82 {% endautoescape %}
83 83 </div>
84 84 {% endif %}
85 85 {% endif %}
86 86 </div>
87 87 {% comment %}
88 88 Thread metadata: counters, tags etc
89 89 {% endcomment %}
90 90 {% if is_opening %}
91 91 <div class="metadata">
92 92 {% if is_opening and need_open_link %}
93 93 {{ thread.get_reply_count }} {% trans 'messages' %},
94 94 {{ thread.get_images_count }} {% trans 'images' %}.
95 95 {% endif %}
96 96 <span class="tags">
97 97 {% autoescape off %}
98 98 {{ thread.get_tag_url_list }}
99 99 {% endautoescape %}
100 100 </span>
101 101 </div>
102 102 {% endif %}
103 103 </div>
General Comments 0
You need to be logged in to leave comments. Login now