##// END OF EJS Templates
Added quotation button over the selection
neko259 -
r1521:dd31aeac default
parent child Browse files
Show More
@@ -1,156 +1,161 b''
1 1 .ui-button {
2 2 display: none;
3 3 }
4 4
5 5 .ui-dialog-content {
6 6 padding: 0;
7 7 min-height: 0;
8 8 }
9 9
10 10 .mark_btn {
11 11 cursor: pointer;
12 12 }
13 13
14 14 .img-full {
15 15 position: fixed;
16 16 background-color: #CCC;
17 17 border: 1px solid #000;
18 18 cursor: pointer;
19 19 }
20 20
21 21 .strikethrough {
22 22 text-decoration: line-through;
23 23 }
24 24
25 25 .post_preview {
26 26 z-index: 300;
27 27 position:absolute;
28 28 }
29 29
30 30 .gallery_image {
31 31 display: inline-block;
32 32 }
33 33
34 34 @media print {
35 35 .post-form-w {
36 36 display: none;
37 37 }
38 38 }
39 39
40 40 input[name="image"] {
41 41 display: block;
42 42 width: 100px;
43 43 height: 100px;
44 44 cursor: pointer;
45 45 position: absolute;
46 46 opacity: 0;
47 47 z-index: 1;
48 48 }
49 49
50 50 .file_wrap {
51 51 width: 100px;
52 52 height: 100px;
53 53 border: solid 1px white;
54 54 display: inline-block;
55 55 }
56 56
57 57 form > .file_wrap {
58 58 float: left;
59 59 }
60 60
61 61 .file-thumb {
62 62 width: 100px;
63 63 height: 100px;
64 64 background-size: cover;
65 65 background-position: center;
66 66 }
67 67
68 68 .compact-form-text {
69 69 margin-left:110px;
70 70 }
71 71
72 72 textarea, input {
73 73 -moz-box-sizing: border-box;
74 74 -webkit-box-sizing: border-box;
75 75 box-sizing: border-box;
76 76 }
77 77
78 78 .compact-form-text > textarea {
79 79 height: 100px;
80 80 width: 100%;
81 81 }
82 82
83 83 .post-button-form {
84 84 display: inline;
85 85 }
86 86
87 87 .post-button-form > button, #autoupdate {
88 88 border: none;
89 89 margin: inherit;
90 90 padding: inherit;
91 91 background: none;
92 92 font-size: inherit;
93 93 cursor: pointer;
94 94 }
95 95
96 96 #form-close-button {
97 97 display: none;
98 98 }
99 99
100 100 .post-image-full {
101 101 width: 100%;
102 102 height: auto;
103 103 }
104 104
105 105 #preview-text {
106 106 display: none;
107 107 }
108 108
109 109 .random-images-table {
110 110 text-align: center;
111 111 width: 100%;
112 112 }
113 113
114 114 .random-images-table > div {
115 115 margin-left: auto;
116 116 margin-right: auto;
117 117 }
118 118
119 119 .tag-image, .tag-text-data {
120 120 display: inline-block;
121 121 }
122 122
123 123 .tag-text-data > h2 {
124 124 margin: 0;
125 125 }
126 126
127 127 .tag-image {
128 128 margin-right: 5px;
129 129 }
130 130
131 131 .reply-to-message {
132 132 display: none;
133 133 }
134 134
135 135 .tripcode {
136 136 padding: 2px;
137 137 }
138 138
139 139 #fav-panel {
140 140 display: none;
141 141 margin: 1ex;
142 142 }
143 143
144 144 .hidden_post {
145 145 opacity: 0.2;
146 146 }
147 147
148 148 .hidden_post:hover {
149 149 opacity: 1;
150 150 }
151 151
152 152 .monochrome > .image > .thumb > img {
153 153 filter: grayscale(100%);
154 154 -webkit-filter: grayscale(100%);
155 155 }
156 156
157 #quote-button {
158 position: absolute;
159 display: none;
160 cursor: pointer;
161 } No newline at end of file
@@ -1,568 +1,578 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 {
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 {
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_info > h2 {
360 360 margin: 0;
361 361 }
362 362
363 363 .post-info {
364 364 color: #ddd;
365 365 margin-bottom: 1ex;
366 366 }
367 367
368 368 .moderator_info {
369 369 color: #e99d41;
370 370 opacity: 0.4;
371 371 }
372 372
373 373 .moderator_info:hover {
374 374 opacity: 1;
375 375 }
376 376
377 377 .refmap {
378 378 font-size: 0.9em;
379 379 color: #ccc;
380 380 margin-top: 1em;
381 381 }
382 382
383 383 .fav {
384 384 color: yellow;
385 385 }
386 386
387 387 .not_fav {
388 388 color: #ccc;
389 389 }
390 390
391 391 .form-email {
392 392 display: none;
393 393 }
394 394
395 395 .bar-value {
396 396 background: rgba(50, 55, 164, 0.45);
397 397 font-size: 0.9em;
398 398 height: 1.5em;
399 399 }
400 400
401 401 .bar-bg {
402 402 position: relative;
403 403 border-top: solid 1px #888;
404 404 border-bottom: solid 1px #888;
405 405 margin-top: 5px;
406 406 overflow: hidden;
407 407 }
408 408
409 409 .bar-text {
410 410 padding: 2px;
411 411 position: absolute;
412 412 left: 0;
413 413 top: 0;
414 414 }
415 415
416 416 .page_link {
417 417 background: #444;
418 418 border-top: solid 1px #888;
419 419 border-bottom: solid 1px #888;
420 420 padding: 5px;
421 421 color: #eee;
422 422 font-size: 2ex;
423 423 margin-top: .5ex;
424 424 margin-bottom: .5ex;
425 425 }
426 426
427 427 .skipped_replies {
428 428 padding: 5px;
429 429 margin-left: 3ex;
430 430 margin-right: 3ex;
431 431 border-left: solid 1px #888;
432 432 border-right: solid 1px #888;
433 433 border-bottom: solid 1px #888;
434 434 background: #000;
435 435 }
436 436
437 437 .current_page {
438 438 padding: 2px;
439 439 background-color: #afdcec;
440 440 color: #000;
441 441 }
442 442
443 443 .current_mode {
444 444 font-weight: bold;
445 445 }
446 446
447 447 .gallery_image {
448 448 border: solid 1px;
449 449 margin: 0.5ex;
450 450 text-align: center;
451 451 padding: 1ex;
452 452 }
453 453
454 454 code {
455 455 border: dashed 1px #ccc;
456 456 background: #111;
457 457 padding: 2px;
458 458 font-size: 1.2em;
459 459 display: inline-block;
460 460 }
461 461
462 462 pre {
463 463 overflow: auto;
464 464 }
465 465
466 466 .img-full {
467 467 background: #222;
468 468 border: solid 1px white;
469 469 }
470 470
471 471 .tag_item {
472 472 display: inline-block;
473 473 }
474 474
475 475 #id_models li {
476 476 list-style: none;
477 477 }
478 478
479 479 #id_q {
480 480 margin-left: 1ex;
481 481 }
482 482
483 483 ul {
484 484 padding-left: 0px;
485 485 }
486 486
487 487 .quote-header {
488 488 border-bottom: 2px solid #ddd;
489 489 margin-bottom: 1ex;
490 490 padding-bottom: .5ex;
491 491 color: #ddd;
492 492 font-size: 1.2em;
493 493 }
494 494
495 495 /* Reflink preview */
496 496 .post_preview {
497 497 border-left: 1px solid #777;
498 498 border-right: 1px solid #777;
499 499 max-width: 600px;
500 500 }
501 501
502 502 /* Code highlighter */
503 503 .hljs {
504 504 color: #fff;
505 505 background: #000;
506 506 display: inline-block;
507 507 }
508 508
509 509 .hljs, .hljs-subst, .hljs-tag .hljs-title, .lisp .hljs-title, .clojure .hljs-built_in, .nginx .hljs-title {
510 510 color: #fff;
511 511 }
512 512
513 513 #up {
514 514 position: fixed;
515 515 bottom: 5px;
516 516 right: 5px;
517 517 border: 1px solid #777;
518 518 background: #000;
519 519 padding: 4px;
520 520 opacity: 0.3;
521 521 }
522 522
523 523 #up:hover {
524 524 opacity: 1;
525 525 }
526 526
527 527 .user-cast {
528 528 border: solid #ffffff 1px;
529 529 padding: .2ex;
530 530 background: #152154;
531 531 color: #fff;
532 532 }
533 533
534 534 .highlight {
535 535 background: #222;
536 536 }
537 537
538 538 .post-button-form > button:hover {
539 539 text-decoration: underline;
540 540 }
541 541
542 542 .tree_reply > .post {
543 543 margin-top: 1ex;
544 544 border-left: solid 1px #777;
545 545 padding-right: 0;
546 546 }
547 547
548 548 #preview-text {
549 549 border: solid 1px white;
550 550 margin: 1ex 0 1ex 0;
551 551 padding: 1ex;
552 552 }
553 553
554 554 .image-metadata {
555 555 font-size: 0.9em;
556 556 }
557 557
558 558 .tripcode {
559 559 color: white;
560 560 }
561 561
562 562 #fav-panel {
563 563 border: 1px solid white;
564 564 }
565 565
566 566 .post-blink {
567 567 background-color: #000;
568 568 }
569
570 #quote-button {
571 background-color: black;
572 border: solid white 1px;
573 padding: 2px;
574 }
575
576 #quote-button:hover {
577 background-color: #2d3955;
578 } No newline at end of file
@@ -1,383 +1,393 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: #ff7000;
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:not([name="image"]), .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 border-top: solid #d5494f;
191 191 }
192 192
193 193 .archive_post {
194 194 border-top: solid #575e9f;
195 195 }
196 196
197 197 .quote {
198 198 color: #080;
199 199 font-style: italic;
200 200 }
201 201
202 202 .spoiler {
203 203 background: white;
204 204 color: white;
205 205 }
206 206
207 207 .spoiler:hover {
208 208 color: black;
209 209 }
210 210
211 211 .comment {
212 212 color: #8B6914;
213 213 font-style: italic;
214 214 }
215 215
216 216 a:hover {
217 217 text-decoration: underline;
218 218 }
219 219
220 220 .last-replies {
221 221 margin-left: 3ex;
222 222 }
223 223
224 224 .thread {
225 225 margin-bottom: 3ex;
226 226 }
227 227
228 228 .post:target {
229 229 border: solid 2px black;
230 230 }
231 231
232 232 pre{
233 233 white-space:pre-wrap
234 234 }
235 235
236 236 li {
237 237 list-style-position: inside;
238 238 }
239 239
240 240 .fancybox-skin {
241 241 position: relative;
242 242 background-color: #fff;
243 243 color: #ddd;
244 244 text-shadow: none;
245 245 }
246 246
247 247 .fancybox-image {
248 248 border: 1px solid black;
249 249 }
250 250
251 251 .image-mode-tab {
252 252 display: table;
253 253 margin: 5px;
254 254 padding: 5px;
255 255 background: rgb(221, 221, 221);
256 256 border: 1px solid rgb(204, 204, 204);
257 257 border-radius: 5px 5px 5px 5px;
258 258 }
259 259
260 260 .image-mode-tab > label {
261 261 margin: 0 1ex;
262 262 }
263 263
264 264 .image-mode-tab > label > input {
265 265 margin-right: .5ex;
266 266 }
267 267
268 268 #posts-table {
269 269 margin: 5px;
270 270 }
271 271
272 272 .tag_info, .page_link {
273 273 display: table;
274 274 }
275 275
276 276 .tag_info > h2 {
277 277 margin: 0;
278 278 }
279 279
280 280 .moderator_info {
281 281 color: #e99d41;
282 282 border: dashed 1px;
283 283 padding: 3px;
284 284 }
285 285
286 286 .refmap {
287 287 font-size: 0.9em;
288 288 color: #444;
289 289 margin-top: 1em;
290 290 }
291 291
292 292 input[type="submit"]:hover {
293 293 background: #ccc;
294 294 }
295 295
296 296
297 297 .fav {
298 298 color: rgb(255, 102, 0);
299 299 }
300 300
301 301 .not_fav {
302 302 color: #555;
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 343
344 344 .current_page, .current_mode {
345 345 border: solid 1px #000;
346 346 padding: 2px;
347 347 }
348 348
349 349 .tag_item {
350 350 display: inline-block;
351 351 border: 1px solid #ccc;
352 352 margin: 0.3ex;
353 353 padding: 0.2ex;
354 354 }
355 355
356 356 .multiquote {
357 357 padding: 3px;
358 358 display: inline-block;
359 359 background: #ddd;
360 360 border-style: solid;
361 361 border-width: 1px 1px 1px 4px;
362 362 border-color: #222;
363 363 font-size: 0.9em;
364 364 }
365 365
366 366 .highlight {
367 367 background-color: #F9E8A5;
368 368 }
369 369
370 370 #preview-text {
371 371 border: solid 1px black;
372 372 margin: 1ex 0 1ex 0;
373 373 padding: 1ex;
374 374 }
375 375
376 376 .image-metadata {
377 377 font-style: italic;
378 378 font-size: 0.9em;
379 379 }
380 380
381 381 .post-blink {
382 382 background-color: #333;
383 383 }
384
385 #quote-button {
386 background-color: #e2c48f;
387 border: solid #000000 1px;
388 padding: 2px;
389 }
390
391 #quote-button:hover {
392 background-color: #bde2a6;
393 } No newline at end of file
@@ -1,418 +1,428 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 .right-link {
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
91 91 .form-row {
92 92 display: table;
93 93 width: 100%;
94 94 }
95 95 .form-label, .form-input {
96 96 display: table-cell;
97 97 vertical-align: top;
98 98 }
99 99 .form-label {
100 100 padding: .25em 1ex .25em 0;
101 101 width: 14ex;
102 102 }
103 103 .form-input {
104 104 padding: .25em 0;
105 105 }
106 106 .form-input > * {
107 107 background: #fff;
108 108 color: #000;
109 109 border: none;
110 110 padding: 0;
111 111 resize: vertical;
112 112 }
113 113
114 114 .form-input > :not(.file_wrap) {
115 115 width: 100%;
116 116 }
117 117
118 118 .form-submit {
119 119 border-bottom: 1px solid #666;
120 120 margin-bottom: .5em;
121 121 padding-bottom: .5em;
122 122 }
123 123 .form-title {
124 124 font-weight: bold;
125 125 margin-bottom: .5em;
126 126 }
127 127 .post-form .settings_item {
128 128 margin: .5em 0;
129 129 }
130 130 .form-submit input {
131 131 margin-top: .5em;
132 132 padding: .2em 1ex;
133 133 }
134 134 .form-label {
135 135 text-align: left;
136 136 }
137 137
138 138 .block {
139 139 display: inline-block;
140 140 vertical-align: top;
141 141 }
142 142
143 143 .post_id {
144 144 color: #a00;
145 145 }
146 146
147 147 .post {
148 148 clear: left;
149 149 margin: 0 1ex 1em 1ex;
150 150 overflow-x: auto;
151 151 word-wrap: break-word;
152 152 background: #FFF;
153 153 padding: 1ex;
154 154 border: 1px solid #666;
155 155 box-shadow: 1px 1px 2px 1px #666;
156 156 }
157 157
158 158 #posts > .post:last-child {
159 159 border-bottom: none;
160 160 padding-bottom: 0;
161 161 }
162 162
163 163 .metadata {
164 164 background: #C0E4E8;
165 165 border: 1px solid #7F9699;
166 166 border-radius: .4ex;
167 167 display: table;
168 168 margin-top: .5em;
169 169 padding: .4em;
170 170 }
171 171
172 172 .post ul, .post ol {
173 173 margin: .5em 0 .5em 3ex;
174 174 }
175 175 .post li {
176 176 margin: .2em 0;
177 177 }
178 178 .post p {
179 179 margin: .5em 0;
180 180 }
181 181 .post blockquote {
182 182 border-left: 3px solid #182F6F;
183 183 margin: .5em 0 .5em 3ex;
184 184 padding-left: 1ex;
185 185 }
186 186 .post blockquote > blockquote {
187 187 padding-top: .1em;
188 188 }
189 189
190 190 .post > .image {
191 191 float: left;
192 192 margin-right: 1ex;
193 193 }
194 194 .post > .metadata {
195 195 clear: left;
196 196 }
197 197
198 198 .post > .message .get {
199 199 color: #182F6F; font-weight: bold;
200 200 }
201 201
202 202 .dead_post > .metadata {
203 203 background: #eee;
204 204 }
205 205
206 206 .quote, .multiquote {
207 207 color: #182F6F;
208 208 }
209 209
210 210 .spoiler {
211 211 background: black;
212 212 color: black;
213 213 }
214 214
215 215 .spoiler:hover {
216 216 background: #ffffff;
217 217 }
218 218
219 219 .comment {
220 220 color: #557055;
221 221 }
222 222
223 223 .last-replies {
224 224 margin-left: 6ex;
225 225 }
226 226
227 227 .thread > .post > .message > .post-info {
228 228 border-bottom: 1px solid #ccc;
229 229 padding-bottom: .5em;
230 230 }
231 231
232 232 :target .post_id {
233 233 background: #182F6F;
234 234 color: #FFF;
235 235 text-decoration: none;
236 236 }
237 237
238 238 .image-mode-tab {
239 239 background: #182F6F;
240 240 color: #FFF;
241 241 display: table;
242 242 margin: 1em auto 1em 0;
243 243 padding: .2em .5ex;
244 244 }
245 245
246 246 .image-mode-tab > label {
247 247 margin: 0 1ex;
248 248 }
249 249
250 250 .image-mode-tab > label > input {
251 251 margin-right: .5ex;
252 252 }
253 253
254 254 .tag_info, .page_link {
255 255 margin: 1em 0;
256 256 text-align: center;
257 257 }
258 258
259 259 .form-errors {
260 260 margin-left: 1ex;
261 261 }
262 262
263 263 .moderator_info {
264 264 font-weight: bold;
265 265 float: right;
266 266 }
267 267
268 268 .refmap {
269 269 border: 1px dashed #aaa;
270 270 padding: 0.5em;
271 271 display: table;
272 272 }
273 273
274 274 .fav {
275 275 color: blue;
276 276 }
277 277
278 278 .not_fav {
279 279 color: #ccc;
280 280 }
281 281
282 282 .form-email {
283 283 display: none;
284 284 }
285 285
286 286 .bar-value {
287 287 background: #E3E7F2;
288 288 padding: .1em 1ex;
289 289 moz-box-sizing: border-box;
290 290 box-sizing: border-box;
291 291 height: 1.5em;
292 292 }
293 293
294 294 .bar-bg {
295 295 background: #EA4649;
296 296 border: 1px solid #666;
297 297 margin: 0 1ex 1em 1ex;
298 298 position: relative;
299 299 overflow: hidden;
300 300 }
301 301
302 302 .bar-text {
303 303 padding: 2px;
304 304 position: absolute;
305 305 left: 0;
306 306 top: 0;
307 307 }
308 308
309 309 .skipped_replies {
310 310 margin: 1ex;
311 311 }
312 312
313 313 #mark-panel {
314 314 background: #eee;
315 315 border-bottom: 1px solid #182F6F;
316 316 }
317 317
318 318 .mark_btn {
319 319 display: inline-block;
320 320 padding: .2em 1ex;
321 321 border-left: 1px solid #182F6F;
322 322 }
323 323
324 324 .mark_btn:first-child {
325 325 border-left: none;
326 326 }
327 327
328 328 .mark_btn:last-child {
329 329 border-right: 1px solid #182F6F;
330 330 }
331 331
332 332 .current_page {
333 333 border-bottom: 1px solid #FFF;
334 334 padding: 0px 0.5ex;
335 335 }
336 336
337 337 .image-mode-tab a {
338 338 text-decoration: none;
339 339 }
340 340 .image-mode-tab .current_mode::before {
341 341 content: "βœ“ ";
342 342 padding: 0 0 0 .5ex;
343 343 color: #182F6F;
344 344 background: #FFF;
345 345 }
346 346 .image-mode-tab .current_mode {
347 347 padding: 0 .5ex 0 0;
348 348 color: #182F6F;
349 349 background: #FFF;
350 350 }
351 351
352 352 .gallery_image_metadata {
353 353 margin-bottom: 1em;
354 354 }
355 355
356 356 .gallery_image {
357 357 padding: 4px;
358 358 margin: .5em 0 0 1ex;
359 359 text-align: center;
360 360 vertical-align: top;
361 361 }
362 362
363 363 .swappable-form-full > form {
364 364 display: table;
365 365 width: 100%;
366 366 }
367 367
368 368 #id_models li {
369 369 list-style: none;
370 370 }
371 371
372 372 #id_q {
373 373 margin-left: 1ex;
374 374 }
375 375
376 376 .br {
377 377 margin-top: 0.5em;
378 378 margin-bottom: 0.5em;
379 379 }
380 380
381 381 .message, .refmap {
382 382 margin-top: .5em;
383 383 }
384 384
385 385 .user-cast {
386 386 padding: 0.2em .5ex;
387 387 background: #008;
388 388 color: #FFF;
389 389 display: inline-block;
390 390 text-decoration: none;
391 391 }
392 392
393 393 .highlight {
394 394 background-color: #D4F0F9;
395 395 }
396 396
397 397 .dead_post {
398 398 border-right: 1ex solid #666;
399 399 }
400 400
401 401 #preview-text {
402 402 border: solid 1px white;
403 403 margin: 1ex 0 1ex 0;
404 404 padding: 1ex;
405 405 }
406 406
407 407 .image-metadata {
408 408 font-style: italic;
409 409 font-size: 0.9em;
410 410 }
411 411
412 412 audio {
413 413 margin-top: 1em;
414 414 }
415 415
416 416 .post-blink {
417 417 background-color: #ccc;
418 418 }
419
420 #quote-button {
421 background-color: #99a3e2;
422 border: solid #000000 1px;
423 padding: 2px;
424 }
425
426 #quote-button:hover {
427 background-color: #b9c4e2;
428 } No newline at end of file
@@ -1,122 +1,143 b''
1 1 /*
2 2 @licstart The following is the entire license notice for the
3 3 JavaScript code in this page.
4 4
5 5
6 6 Copyright (C) 2013 neko259
7 7
8 8 The JavaScript code in this page is free software: you can
9 9 redistribute it and/or modify it under the terms of the GNU
10 10 General Public License (GNU GPL) as published by the Free Software
11 11 Foundation, either version 3 of the License, or (at your option)
12 12 any later version. The code is distributed WITHOUT ANY WARRANTY;
13 13 without even the implied warranty of MERCHANTABILITY or FITNESS
14 14 FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
15 15
16 16 As additional permission under GNU GPL version 3 section 7, you
17 17 may distribute non-source (e.g., minimized or compacted) forms of
18 18 that code without the copy of the GNU GPL normally required by
19 19 section 4, provided you include this license notice and a URL
20 20 through which recipients can access the Corresponding Source.
21 21
22 22 @licend The above is the entire license notice
23 23 for the JavaScript code in this page.
24 24 */
25 25
26 26 var CLOSE_BUTTON = '#form-close-button';
27 27 var REPLY_TO_MSG = '.reply-to-message';
28 28 var REPLY_TO_MSG_ID = '#reply-to-message-id';
29 29
30 30 var $html = $("html, body");
31 31
32 32 function moveCaretToEnd(el) {
33 33 if (typeof el.selectionStart == "number") {
34 34 el.selectionStart = el.selectionEnd = el.value.length;
35 35 } else if (typeof el.createTextRange != "undefined") {
36 36 el.focus();
37 37 var range = el.createTextRange();
38 38 range.collapse(false);
39 39 range.select();
40 40 }
41 41 }
42 42
43 43 function getForm() {
44 44 return $('.post-form-w');
45 45 }
46 46
47 47 function resetFormPosition() {
48 48 var form = getForm();
49 49 form.insertAfter($('.thread'));
50 50
51 51 $(CLOSE_BUTTON).hide();
52 52 $(REPLY_TO_MSG).hide();
53 53 }
54 54
55 55 function showFormAfter(blockToInsertAfter) {
56 56 var form = getForm();
57 57 form.insertAfter(blockToInsertAfter);
58 58
59 59 $(CLOSE_BUTTON).show();
60 60 form.show();
61 61 $(REPLY_TO_MSG_ID).text(blockToInsertAfter.attr('id'));
62 62 $(REPLY_TO_MSG).show();
63 63 }
64 64
65 65 function addQuickReply(postId) {
66 66 // If we click "reply" on the same post, it means "cancel"
67 67 if (getForm().prev().attr('id') == postId) {
68 68 resetFormPosition();
69 69 } else {
70 70 var blockToInsert = null;
71 71 var textAreaJq = $('textarea');
72 72 var postLinkRaw = '[post]' + postId + '[/post]'
73 73 var textToAdd = '';
74 74
75 75 if (postId != null) {
76 76 var post = $('#' + postId);
77 77
78 78 // If this is not OP, add reflink to the post. If there already is
79 79 // the same reflink, don't add it again.
80 80 if (!post.is(':first-child') && textAreaJq.val().indexOf(postLinkRaw) < 0) {
81 81 textToAdd += postLinkRaw + '\n';
82 82 }
83 83
84 84 textAreaJq.val(textAreaJq.val()+ textToAdd);
85 85 blockToInsert = post;
86 86 } else {
87 87 blockToInsert = $('.thread');
88 88 }
89 89 showFormAfter(blockToInsert);
90 90
91 91 textAreaJq.focus();
92 92
93 93 var textarea = document.getElementsByTagName('textarea')[0];
94 94 moveCaretToEnd(textarea);
95 95 }
96 96 }
97 97
98 function addQuickQuote(postId) {
99 if (getForm().prev().attr('id') != postId) {
100 addQuickReply(postId);
101 }
102
98 function addQuickQuote() {
103 99 var textToAdd = '';
104 100 var textAreaJq = $('textarea');
105 var postLinkRaw = '[post]' + postId + '[/post]'
106 101 var selection = window.getSelection().toString();
102 if (selection.length == 0) {
103 selection = $("#quote-button").attr('data-text');
104 }
107 105 if (selection.length > 0) {
108 106 textToAdd += '[quote]' + selection + '[/quote]\n';
109 107 }
110 108
111 109 textAreaJq.val(textAreaJq.val()+ textToAdd);
112 110
113 111 textAreaJq.focus();
114 112
115 113 var textarea = document.getElementsByTagName('textarea')[0];
116 114 moveCaretToEnd(textarea);
117 115 }
118 116
119 117 function scrollToBottom() {
120 118 $html.animate({scrollTop: $html.height()}, "fast");
121 119 }
122 120
121 function showQuoteButton() {
122 var selection = window.getSelection().getRangeAt(0).getBoundingClientRect();
123 var quoteButton = $("#quote-button");
124 if (selection.width > 0) {
125 // quoteButton.offset({ top: selection.top - selection.height, left: selection.left });
126 quoteButton.css({top: selection.top + $(window).scrollTop() - 30, left: selection.left});
127 quoteButton.show();
128
129 var text = window.getSelection().toString();
130 quoteButton.attr('data-text', text);
131 } else {
132 quoteButton.hide();
133 }
134 }
135
136 $(document).ready(function() {
137 $('body').on('mouseup', function() {
138 showQuoteButton();
139 });
140 $("#quote-button").click(function() {
141 addQuickQuote();
142 })
143 }); No newline at end of file
@@ -1,106 +1,105 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 }}" {% if tree_depth %}style="margin-left: {{ tree_depth }}em;"{% endif %}>
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 {% if post.tripcode %}
12 12 /
13 13 {% with tripcode=post.get_tripcode %}
14 14 <a href="{% url 'feed' %}?tripcode={{ tripcode.get_full_text }}"
15 15 class="tripcode" title="{{ tripcode.get_full_text }}"
16 16 style="border: solid 2px #{{ tripcode.get_color }}; border-left: solid 1ex #{{ tripcode.get_color }};">{{ tripcode.get_short_text }}</a>
17 17 {% endwith %}
18 18 {% endif %}
19 19 {% comment %}
20 20 Thread death time needs to be shown only if the thread is alredy archived
21 21 and this is an opening post (thread death time) or a post for popup
22 22 (we don't see OP here so we show the death time in the post itself).
23 23 {% endcomment %}
24 24 {% if thread.is_archived %}
25 25 {% if is_opening %}
26 26 β€” <time datetime="{{ thread.bump_time|date:'c' }}">{{ thread.bump_time }}</time>
27 27 {% endif %}
28 28 {% endif %}
29 29 {% if is_opening %}
30 30 {% if need_open_link %}
31 31 {% if thread.is_archived %}
32 32 <a class="link" href="{% url 'thread' post.id %}">{% trans "Open" %}</a>
33 33 {% else %}
34 34 <a class="link" href="{% url 'thread' post.id %}#form">{% trans "Reply" %}</a>
35 35 {% endif %}
36 36 {% endif %}
37 37 {% else %}
38 38 {% if need_op_data %}
39 39 {% with thread.get_opening_post as op %}
40 40 {% trans " in " %}{{ op.get_link_view|safe }} <span class="title">{{ op.get_title_or_text }}</span>
41 41 {% endwith %}
42 42 {% endif %}
43 43 {% endif %}
44 44 {% if reply_link and not thread.is_archived %}
45 <a href="#form" onclick="addQuickReply('{{ post.id }}'); return false;">{% trans 'Reply' %}</a> |
46 <a href="#form" onclick="addQuickQuote('{{ post.id }}'); return false;">{% trans 'Quote' %}</a>
45 <a href="#form" onclick="addQuickReply('{{ post.id }}'); return false;">{% trans 'Reply' %}</a>
47 46 {% endif %}
48 47
49 48 {% if perms.boards.change_post or perms.boards.delete_post or perms.boards.change_thread or perms_boards.delete_thread %}
50 49 <span class="moderator_info">
51 50 {% if perms.boards.change_post or perms.boards.delete_post %}
52 51 | <a href="{% url 'admin:boards_post_change' post.id %}">{% trans 'Edit' %}</a>
53 52 {% endif %}
54 53 {% if perms.boards.change_thread or perms_boards.delete_thread %}
55 54 {% if is_opening %}
56 55 | <a href="{% url 'admin:boards_thread_change' thread.id %}">{% trans 'Edit thread' %}</a>
57 56 {% endif %}
58 57 {% endif %}
59 58 </form>
60 59 </span>
61 60 {% endif %}
62 61 </div>
63 62 {% comment %}
64 63 Post images. Currently only 1 image can be posted and shown, but post model
65 64 supports multiple.
66 65 {% endcomment %}
67 66 {% for image in post.images.all %}
68 67 {{ image.get_view|safe }}
69 68 {% endfor %}
70 69 {% for file in post.attachments.all %}
71 70 {{ file.get_view|safe }}
72 71 {% endfor %}
73 72 {% comment %}
74 73 Post message (text)
75 74 {% endcomment %}
76 75 <div class="message">
77 76 {% autoescape off %}
78 77 {% if truncated %}
79 78 {{ post.get_text|truncatewords_html:50 }}
80 79 {% else %}
81 80 {{ post.get_text }}
82 81 {% endif %}
83 82 {% endautoescape %}
84 83 </div>
85 84 {% if post.is_referenced %}
86 85 {% if not mode_tree %}
87 86 <div class="refmap">
88 87 {% trans "Replies" %}: {{ post.refmap|safe }}
89 88 </div>
90 89 {% endif %}
91 90 {% endif %}
92 91 {% comment %}
93 92 Thread metadata: counters, tags etc
94 93 {% endcomment %}
95 94 {% if is_opening %}
96 95 <div class="metadata">
97 96 {% if is_opening and need_open_link %}
98 97 {% blocktrans count count=thread.get_reply_count %}{{ count }} message{% plural %}{{ count }} messages{% endblocktrans %},
99 98 {% blocktrans count count=thread.get_images_count %}{{ count }} image{% plural %}{{ count }} images{% endblocktrans %}.
100 99 {% endif %}
101 100 <span class="tags">
102 101 {{ thread.get_tag_url_list|safe }}
103 102 </span>
104 103 </div>
105 104 {% endif %}
106 105 </div>
@@ -1,79 +1,81 b''
1 1 {% extends "boards/thread.html" %}
2 2
3 3 {% load i18n %}
4 4 {% load static from staticfiles %}
5 5 {% load board %}
6 6 {% load tz %}
7 7
8 8 {% block thread_content %}
9 9 {% get_current_language as LANGUAGE_CODE %}
10 10 {% get_current_timezone as TIME_ZONE %}
11 11
12 <div id="quote-button">{% trans 'Quote' %}</div>
13
12 14 <div class="tag_info">
13 15 <h2>
14 16 <form action="{% url 'thread' opening_post.id %}" method="post" class="post-button-form">
15 17 {% csrf_token %}
16 18 {% if is_favorite %}
17 19 <button name="method" value="unsubscribe" class="fav">β˜…</button>
18 20 {% else %}
19 21 <button name="method" value="subscribe" class="not_fav">β˜…</button>
20 22 {% endif %}
21 23 </form>
22 24 {{ opening_post.get_title_or_text }}
23 25 </h2>
24 26 </div>
25 27
26 28 {% if bumpable and thread.has_post_limit %}
27 29 <div class="bar-bg">
28 30 <div class="bar-value" style="width:{{ bumplimit_progress }}%" id="bumplimit_progress">
29 31 </div>
30 32 <div class="bar-text">
31 33 <span id="left_to_limit">{{ posts_left }}</span> {% trans 'posts to bumplimit' %}
32 34 </div>
33 35 </div>
34 36 {% endif %}
35 37
36 38 <div class="thread">
37 39 {% for post in thread.get_replies %}
38 40 {% post_view post reply_link=True %}
39 41 {% endfor %}
40 42 </div>
41 43
42 44 {% if not thread.is_archived %}
43 45 <div class="post-form-w">
44 46 <script src="{% static 'js/panel.js' %}"></script>
45 47 <div class="form-title">{% trans "Reply to thread" %} #{{ opening_post.id }}<span class="reply-to-message"> {% trans "to message " %} #<span id="reply-to-message-id"></span></span></div>
46 48 <div class="post-form" id="compact-form" data-hasher="{% static 'js/3party/sha256.js' %}"
47 49 data-pow-script="{% static 'js/proof_of_work.js' %}">
48 50 <div class="swappable-form-full">
49 51 <form enctype="multipart/form-data" method="post" id="form">{% csrf_token %}
50 52 <div class="compact-form-text"></div>
51 53 {{ form.as_div }}
52 54 <div class="form-submit">
53 55 <input type="submit" value="{% trans "Post" %}"/>
54 56 <button id="preview-button" onclick="return false;">{% trans 'Preview' %}</button>
55 57 <button id="file-source-button" onclick="return false;">{% trans 'Change file source' %}</button>
56 58 </div>
57 59 </form>
58 60 </div>
59 61 <div id="preview-text"></div>
60 62 <div>
61 63 {% with size=max_file_size|filesizeformat %}
62 64 {% blocktrans %}Max file size is {{ size }}.{% endblocktrans %}
63 65 {% endwith %}
64 66 </div>
65 67 <div><a href="{% url "staticpage" name="help" %}">
66 68 {% trans 'Text syntax' %}</a></div>
67 69 <div><a id="form-close-button" href="#" onClick="resetFormPosition(); return false;">{% trans 'Close form' %}</a></div>
68 70 </div>
69 71 </div>
70 72
71 73 <script src="{% static 'js/form.js' %}"></script>
72 74 <script src="{% static 'js/jquery.form.min.js' %}"></script>
73 75 <script src="{% static 'js/3party/jquery.blockUI.js' %}"></script>
74 76 <script src="{% static 'js/thread.js' %}"></script>
75 77 <script src="{% static 'js/thread_update.js' %}"></script>
76 78 {% endif %}
77 79
78 80 <script src="{% static 'js/3party/centrifuge.js' %}"></script>
79 81 {% endblock %}
General Comments 0
You need to be logged in to leave comments. Login now