##// END OF EJS Templates
Moved post-info block out of the message block
neko259 -
r668:6038d1d4 default
parent child Browse files
Show More
@@ -1,419 +1,420 b''
1 html {
1 html {
2 background: #555;
2 background: #555;
3 color: #ffffff;
3 color: #ffffff;
4 }
4 }
5
5
6 body {
6 body {
7 margin: 0;
7 margin: 0;
8 }
8 }
9
9
10 #admin_panel {
10 #admin_panel {
11 background: #FF0000;
11 background: #FF0000;
12 color: #00FF00
12 color: #00FF00
13 }
13 }
14
14
15 .input_field {
15 .input_field {
16
16
17 }
17 }
18
18
19 .input_field_name {
19 .input_field_name {
20
20
21 }
21 }
22
22
23 .input_field_error {
23 .input_field_error {
24 color: #FF0000;
24 color: #FF0000;
25 }
25 }
26
26
27 .title {
27 .title {
28 font-weight: bold;
28 font-weight: bold;
29 color: #ffcc00;
29 color: #ffcc00;
30 font-size: 2ex;
30 font-size: 2ex;
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: #F5FFC9;*/
43 /*color: #F5FFC9;*/
44 color: #FFD37D;
44 color: #FFD37D;
45 /*color: #b4cfec;*/
45 /*color: #b4cfec;*/
46 }
46 }
47
47
48 .post_id {
48 .post_id {
49 color: #fff380;
49 color: #fff380;
50 }
50 }
51
51
52 .post, .dead_post, .archive_post, #posts-table {
52 .post, .dead_post, .archive_post, #posts-table {
53 background: #333;
53 background: #333;
54 padding: 10px;
54 padding: 10px;
55 clear: left;
55 clear: left;
56 word-wrap: break-word;
56 word-wrap: break-word;
57 border-top: 1px solid #777;
57 border-top: 1px solid #777;
58 border-bottom: 1px solid #777;
58 border-bottom: 1px solid #777;
59 }
59 }
60
60
61 .post + .post {
61 .post + .post {
62 border-top: none;
62 border-top: none;
63 }
63 }
64
64
65 .dead_post + .dead_post {
65 .dead_post + .dead_post {
66 border-top: none;
66 border-top: none;
67 }
67 }
68
68
69 .archive_post + .archive_post {
69 .archive_post + .archive_post {
70 border-top: none;
70 border-top: none;
71 }
71 }
72
72
73 .metadata {
73 .metadata {
74 padding-top: 5px;
74 padding-top: 5px;
75 margin-top: 10px;
75 margin-top: 10px;
76 border-top: solid 1px #666;
76 border-top: solid 1px #666;
77 color: #ddd;
77 color: #ddd;
78 }
78 }
79
79
80 .navigation_panel, .tag_info {
80 .navigation_panel, .tag_info {
81 background: #444;
81 background: #444;
82 margin-bottom: 5px;
82 margin-bottom: 5px;
83 margin-top: 5px;
83 margin-top: 5px;
84 padding: 10px;
84 padding: 10px;
85 border-bottom: solid 1px #888;
85 border-bottom: solid 1px #888;
86 border-top: solid 1px #888;
86 border-top: solid 1px #888;
87 color: #eee;
87 color: #eee;
88 }
88 }
89
89
90 .navigation_panel .link {
90 .navigation_panel .link {
91 border-right: 1px solid #fff;
91 border-right: 1px solid #fff;
92 font-weight: bold;
92 font-weight: bold;
93 margin-right: 1ex;
93 margin-right: 1ex;
94 padding-right: 1ex;
94 padding-right: 1ex;
95 }
95 }
96 .navigation_panel .link:last-child {
96 .navigation_panel .link:last-child {
97 border-left: 1px solid #fff;
97 border-left: 1px solid #fff;
98 border-right: none;
98 border-right: none;
99 float: right;
99 float: right;
100 margin-left: 1ex;
100 margin-left: 1ex;
101 margin-right: 0;
101 margin-right: 0;
102 padding-left: 1ex;
102 padding-left: 1ex;
103 padding-right: 0;
103 padding-right: 0;
104 }
104 }
105
105
106 .navigation_panel::after, .post::after {
106 .navigation_panel::after, .post::after {
107 clear: both;
107 clear: both;
108 content: ".";
108 content: ".";
109 display: block;
109 display: block;
110 height: 0;
110 height: 0;
111 line-height: 0;
111 line-height: 0;
112 visibility: hidden;
112 visibility: hidden;
113 }
113 }
114
114
115 p {
115 p {
116 margin-top: .5em;
116 margin-top: .5em;
117 margin-bottom: .5em;
117 margin-bottom: .5em;
118 }
118 }
119
119
120 .post-form-w {
120 .post-form-w {
121 background: #333344;
121 background: #333344;
122 border-top: solid 1px #888;
122 border-top: solid 1px #888;
123 border-bottom: solid 1px #888;
123 border-bottom: solid 1px #888;
124 color: #fff;
124 color: #fff;
125 padding: 10px;
125 padding: 10px;
126 margin-bottom: 5px;
126 margin-bottom: 5px;
127 margin-top: 5px;
127 margin-top: 5px;
128 }
128 }
129
129
130 .form-row {
130 .form-row {
131 display: table-row;
131 display: table-row;
132 }
132 }
133
133
134 .form-label, .form-input, .form-errors {
134 .form-label, .form-input, .form-errors {
135 display: table-cell;
135 display: table-cell;
136 }
136 }
137
137
138 .form-label {
138 .form-label {
139 padding: .25em 1ex .25em 0;
139 padding: .25em 1ex .25em 0;
140 vertical-align: top;
140 vertical-align: top;
141 }
141 }
142
142
143 .form-input {
143 .form-input {
144 padding: .25em 0;
144 padding: .25em 0;
145 }
145 }
146
146
147 .form-errors {
147 .form-errors {
148 font-weight: bolder;
148 font-weight: bolder;
149 vertical-align: middle;
149 vertical-align: middle;
150 }
150 }
151
151
152 .post-form input, .post-form textarea {
152 .post-form input, .post-form textarea {
153 background: #333;
153 background: #333;
154 color: #fff;
154 color: #fff;
155 border: solid 1px;
155 border: solid 1px;
156 padding: 0;
156 padding: 0;
157 width: 100%;
157 width: 100%;
158 font: medium sans;
158 font: medium sans;
159 }
159 }
160
160
161 .form-submit {
161 .form-submit {
162 display: table;
162 display: table;
163 margin-bottom: 1ex;
163 margin-bottom: 1ex;
164 }
164 }
165
165
166 .form-title {
166 .form-title {
167 font-weight: bold;
167 font-weight: bold;
168 font-size: 2.5ex;
168 font-size: 2.5ex;
169 text-decoration: underline;
169 text-decoration: underline;
170 }
170 }
171
171
172 input[type="submit"] {
172 input[type="submit"] {
173 background: #222;
173 background: #222;
174 border: solid 2px #fff;
174 border: solid 2px #fff;
175 color: #fff;
175 color: #fff;
176 padding: 0.5ex;
176 padding: 0.5ex;
177 }
177 }
178
178
179 input[type="submit"]:hover {
179 input[type="submit"]:hover {
180 background: #060;
180 background: #060;
181 }
181 }
182
182
183 blockquote {
183 blockquote {
184 border-left: solid 2px;
184 border-left: solid 2px;
185 padding-left: 5px;
185 padding-left: 5px;
186 color: #B1FB17;
186 color: #B1FB17;
187 margin: 0;
187 margin: 0;
188 }
188 }
189
189
190 .post > .image {
190 .post > .image {
191 float: left;
191 float: left;
192 margin: 0 1ex .5ex 0;
192 margin: 0 1ex .5ex 0;
193 min-width: 1px;
193 min-width: 1px;
194 text-align: center;
194 text-align: center;
195 display: table-row;
195 display: table-row;
196 }
196 }
197
197
198 .post > .metadata {
198 .post > .metadata {
199 clear: left;
199 clear: left;
200 }
200 }
201
201
202 .get {
202 .get {
203 font-weight: bold;
203 font-weight: bold;
204 color: #d55;
204 color: #d55;
205 }
205 }
206
206
207 * {
207 * {
208 text-decoration: none;
208 text-decoration: none;
209 }
209 }
210
210
211 .dead_post {
211 .dead_post {
212 background-color: #442222;
212 background-color: #442222;
213 }
213 }
214
214
215 .archive_post {
215 .archive_post {
216 background-color: #000;
216 background-color: #000;
217 }
217 }
218
218
219 .mark_btn {
219 .mark_btn {
220 border: 1px solid;
220 border: 1px solid;
221 min-width: 2ex;
221 min-width: 2ex;
222 padding: 2px 2ex;
222 padding: 2px 2ex;
223 }
223 }
224
224
225 .mark_btn:hover {
225 .mark_btn:hover {
226 background: #555;
226 background: #555;
227 }
227 }
228
228
229 .quote {
229 .quote {
230 color: #92cf38;
230 color: #92cf38;
231 font-style: italic;
231 font-style: italic;
232 }
232 }
233
233
234 .spoiler {
234 .spoiler {
235 background: white;
235 background: white;
236 color: white;
236 color: white;
237 }
237 }
238
238
239 .spoiler:hover {
239 .spoiler:hover {
240 color: black;
240 color: black;
241 }
241 }
242
242
243 .comment {
243 .comment {
244 color: #eb2;
244 color: #eb2;
245 }
245 }
246
246
247 a:hover {
247 a:hover {
248 text-decoration: underline;
248 text-decoration: underline;
249 }
249 }
250
250
251 .last-replies {
251 .last-replies {
252 margin-left: 3ex;
252 margin-left: 3ex;
253 margin-right: 3ex;
253 margin-right: 3ex;
254 }
254 }
255
255
256 .thread {
256 .thread {
257 margin-bottom: 3ex;
257 margin-bottom: 3ex;
258 margin-top: 1ex;
258 margin-top: 1ex;
259 }
259 }
260
260
261 .post:target {
261 .post:target {
262 border: solid 2px white;
262 border: solid 2px white;
263 }
263 }
264
264
265 pre{
265 pre{
266 white-space:pre-wrap
266 white-space:pre-wrap
267 }
267 }
268
268
269 li {
269 li {
270 list-style-position: inside;
270 list-style-position: inside;
271 }
271 }
272
272
273 .fancybox-skin {
273 .fancybox-skin {
274 position: relative;
274 position: relative;
275 background-color: #fff;
275 background-color: #fff;
276 color: #ddd;
276 color: #ddd;
277 text-shadow: none;
277 text-shadow: none;
278 }
278 }
279
279
280 .fancybox-image {
280 .fancybox-image {
281 border: 1px solid black;
281 border: 1px solid black;
282 }
282 }
283
283
284 .image-mode-tab {
284 .image-mode-tab {
285 background: #444;
285 background: #444;
286 color: #eee;
286 color: #eee;
287 margin-top: 5px;
287 margin-top: 5px;
288 padding: 5px;
288 padding: 5px;
289 border-top: 1px solid #888;
289 border-top: 1px solid #888;
290 border-bottom: 1px solid #888;
290 border-bottom: 1px solid #888;
291 }
291 }
292
292
293 .image-mode-tab > label {
293 .image-mode-tab > label {
294 margin: 0 1ex;
294 margin: 0 1ex;
295 }
295 }
296
296
297 .image-mode-tab > label > input {
297 .image-mode-tab > label > input {
298 margin-right: .5ex;
298 margin-right: .5ex;
299 }
299 }
300
300
301 #posts-table {
301 #posts-table {
302 margin-top: 5px;
302 margin-top: 5px;
303 margin-bottom: 5px;
303 margin-bottom: 5px;
304 }
304 }
305
305
306 .tag_info > h2 {
306 .tag_info > h2 {
307 margin: 0;
307 margin: 0;
308 }
308 }
309
309
310 .post-info {
310 .post-info {
311 color: #ddd;
311 color: #ddd;
312 margin-bottom: 1ex;
312 }
313 }
313
314
314 .moderator_info {
315 .moderator_info {
315 color: #e99d41;
316 color: #e99d41;
316 float: right;
317 float: right;
317 font-weight: bold;
318 font-weight: bold;
318 }
319 }
319
320
320 .refmap {
321 .refmap {
321 font-size: 0.9em;
322 font-size: 0.9em;
322 color: #ccc;
323 color: #ccc;
323 margin-top: 1em;
324 margin-top: 1em;
324 }
325 }
325
326
326 .fav {
327 .fav {
327 color: yellow;
328 color: yellow;
328 }
329 }
329
330
330 .not_fav {
331 .not_fav {
331 color: #ccc;
332 color: #ccc;
332 }
333 }
333
334
334 .role {
335 .role {
335 text-decoration: underline;
336 text-decoration: underline;
336 }
337 }
337
338
338 .form-email {
339 .form-email {
339 display: none;
340 display: none;
340 }
341 }
341
342
342 .footer {
343 .footer {
343 margin: 5px;
344 margin: 5px;
344 }
345 }
345
346
346 .bar-value {
347 .bar-value {
347 background: rgba(50, 55, 164, 0.45);
348 background: rgba(50, 55, 164, 0.45);
348 font-size: 0.9em;
349 font-size: 0.9em;
349 height: 1.5em;
350 height: 1.5em;
350 }
351 }
351
352
352 .bar-bg {
353 .bar-bg {
353 position: relative;
354 position: relative;
354 border-top: solid 1px #888;
355 border-top: solid 1px #888;
355 border-bottom: solid 1px #888;
356 border-bottom: solid 1px #888;
356 margin-top: 5px;
357 margin-top: 5px;
357 overflow: hidden;
358 overflow: hidden;
358 }
359 }
359
360
360 .bar-text {
361 .bar-text {
361 padding: 2px;
362 padding: 2px;
362 position: absolute;
363 position: absolute;
363 left: 0;
364 left: 0;
364 top: 0;
365 top: 0;
365 }
366 }
366
367
367 .page_link {
368 .page_link {
368 display: table;
369 display: table;
369 background: #444;
370 background: #444;
370 margin: 5px;
371 margin: 5px;
371 border: solid 1px #888;
372 border: solid 1px #888;
372 padding: 5px;
373 padding: 5px;
373 font-weight: bolder;
374 font-weight: bolder;
374 color: #eee;
375 color: #eee;
375 }
376 }
376
377
377 .skipped_replies {
378 .skipped_replies {
378 margin: 5px;
379 margin: 5px;
379 }
380 }
380
381
381 .current_page {
382 .current_page {
382 border: solid 1px #afdcec;
383 border: solid 1px #afdcec;
383 padding: 2px;
384 padding: 2px;
384 }
385 }
385
386
386 .current_mode {
387 .current_mode {
387 font-weight: bold;
388 font-weight: bold;
388 }
389 }
389
390
390 .gallery_image {
391 .gallery_image {
391 border: solid 1px;
392 border: solid 1px;
392 padding: 0.5ex;
393 padding: 0.5ex;
393 margin: 0.5ex;
394 margin: 0.5ex;
394 text-align: center;
395 text-align: center;
395 }
396 }
396
397
397 code {
398 code {
398 border: dashed 1px #ccc;
399 border: dashed 1px #ccc;
399 background: #111;
400 background: #111;
400 padding: 2px;
401 padding: 2px;
401 font-size: 1.2em;
402 font-size: 1.2em;
402 display: inline-block;
403 display: inline-block;
403 }
404 }
404
405
405 pre {
406 pre {
406 overflow: auto;
407 overflow: auto;
407 }
408 }
408
409
409 .img-full {
410 .img-full {
410 background: #222;
411 background: #222;
411 border: solid 1px white;
412 border: solid 1px white;
412 }
413 }
413
414
414 .tag_item {
415 .tag_item {
415 display: inline-block;
416 display: inline-block;
416 border: 1px dashed #666;
417 border: 1px dashed #666;
417 margin: 0.2ex;
418 margin: 0.2ex;
418 padding: 0.1ex;
419 padding: 0.1ex;
419 }
420 }
@@ -1,97 +1,97 b''
1 {% load i18n %}
1 {% load i18n %}
2 {% load board %}
2 {% load board %}
3 {% load cache %}
3 {% load cache %}
4
4
5 {% get_current_language as LANGUAGE_CODE %}
5 {% get_current_language as LANGUAGE_CODE %}
6
6
7 {% spaceless %}
7 {% spaceless %}
8 {% cache 600 post post.id post.last_edit_time thread.archived bumpable truncated moderator LANGUAGE_CODE need_open_link %}
8 {% cache 600 post post.id post.last_edit_time thread.archived bumpable truncated moderator LANGUAGE_CODE need_open_link %}
9 {% if thread.archived %}
9 {% if thread.archived %}
10 <div class="post archive_post" id="{{ post.id }}">
10 <div class="post archive_post" id="{{ post.id }}">
11 {% elif bumpable %}
11 {% elif bumpable %}
12 <div class="post" id="{{ post.id }}">
12 <div class="post" id="{{ post.id }}">
13 {% else %}
13 {% else %}
14 <div class="post dead_post" id="{{ post.id }}">
14 <div class="post dead_post" id="{{ post.id }}">
15 {% endif %}
15 {% endif %}
16
16
17 <div class="post-info">
18 <a class="post_id" href="{% post_object_url post thread=thread %}"
19 {% if not truncated and not thread.archived %}
20 onclick="javascript:addQuickReply('{{ post.id }}'); return false;"
21 title="{% trans 'Quote' %}"
22 {% endif %}
23 >({{ post.id }}) </a>
24 <span class="title">{{ post.title }} </span>
25 <span class="pub_time">{{ post.pub_time }}</span>
26 {% if thread.archived %}
27 β€” {{ thread.bump_time }}
28 {% endif %}
29 {% if is_opening and need_open_link %}
30 {% if thread.archived %}
31 [<a class="link" href="{% url 'thread' post.id %}">{% trans "Open" %}</a>]
32 {% else %}
33 [<a class="link" href="{% url 'thread' post.id %}#form">{% trans "Reply" %}</a>]
34 {% endif %}
35 {% endif %}
36
37 {% if moderator %}
38 <span class="moderator_info">
39 [<a href="{% url 'post_admin' post_id=post.id %}"
40 >{% trans 'Edit' %}</a>]
41 [<a href="{% url 'delete' post_id=post.id %}"
42 >{% trans 'Delete' %}</a>]
43 ({{ post.poster_ip }})
44 [<a href="{% url 'ban' post_id=post.id %}?next={{ request.path }}"
45 >{% trans 'Ban IP' %}</a>]
46 </span>
47 {% endif %}
48 </div>
17 {% if post.image %}
49 {% if post.image %}
18 <div class="image">
50 <div class="image">
19 <a
51 <a
20 class="thumb"
52 class="thumb"
21 href="{{ post.image.url }}"><img
53 href="{{ post.image.url }}"><img
22 src="{{ post.image.url_200x150 }}"
54 src="{{ post.image.url_200x150 }}"
23 alt="{{ post.id }}"
55 alt="{{ post.id }}"
24 width="{{ post.image_pre_width }}"
56 width="{{ post.image_pre_width }}"
25 height="{{ post.image_pre_height }}"
57 height="{{ post.image_pre_height }}"
26 data-width="{{ post.image_width }}"
58 data-width="{{ post.image_width }}"
27 data-height="{{ post.image_height }}"/>
59 data-height="{{ post.image_height }}"/>
28 </a>
60 </a>
29 </div>
61 </div>
30 {% endif %}
62 {% endif %}
31 <div class="message">
63 <div class="message">
32 <div class="post-info">
33 <a class="post_id" href="{% post_object_url post thread=thread %}"
34 {% if not truncated and not thread.archived %}
35 onclick="javascript:addQuickReply('{{ post.id }}'); return false;"
36 title="{% trans 'Quote' %}"
37 {% endif %}
38 >({{ post.id }}) </a>
39 <span class="title">{{ post.title }} </span>
40 <span class="pub_time">{{ post.pub_time }}</span>
41 {% if thread.archived %}
42 β€” {{ thread.bump_time }}
43 {% endif %}
44 {% if is_opening and need_open_link %}
45 {% if thread.archived %}
46 [<a class="link" href="{% url 'thread' post.id %}">{% trans "Open" %}</a>]
47 {% else %}
48 [<a class="link" href="{% url 'thread' post.id %}#form">{% trans "Reply" %}</a>]
49 {% endif %}
50 {% endif %}
51
52 {% if moderator %}
53 <span class="moderator_info">
54 [<a href="{% url 'post_admin' post_id=post.id %}"
55 >{% trans 'Edit' %}</a>]
56 [<a href="{% url 'delete' post_id=post.id %}"
57 >{% trans 'Delete' %}</a>]
58 ({{ post.poster_ip }})
59 [<a href="{% url 'ban' post_id=post.id %}?next={{ request.path }}"
60 >{% trans 'Ban IP' %}</a>]
61 </span>
62 {% endif %}
63 </div>
64 {% autoescape off %}
64 {% autoescape off %}
65 {% if truncated %}
65 {% if truncated %}
66 {{ post.text.rendered|truncatewords_html:50 }}
66 {{ post.text.rendered|truncatewords_html:50 }}
67 {% else %}
67 {% else %}
68 {{ post.text.rendered }}
68 {{ post.text.rendered }}
69 {% endif %}
69 {% endif %}
70 {% endautoescape %}
70 {% endautoescape %}
71 {% if post.referenced_posts.exists %}
71 {% if post.referenced_posts.exists %}
72 <div class="refmap">
72 <div class="refmap">
73 {% trans "Replies" %}:
73 {% trans "Replies" %}:
74 {% for ref_post in post.referenced_posts.all %}
74 {% for ref_post in post.referenced_posts.all %}
75 <a href="{% post_object_url ref_post thread=thread %}">&gt;&gt;{{ ref_post.id }}</a>{% if not forloop.last %},{% endif %}
75 <a href="{% post_object_url ref_post thread=thread %}">&gt;&gt;{{ ref_post.id }}</a>{% if not forloop.last %},{% endif %}
76 {% endfor %}
76 {% endfor %}
77 </div>
77 </div>
78 {% endif %}
78 {% endif %}
79 </div>
79 </div>
80 {% endcache %}
80 {% endcache %}
81 {% if is_opening %}
81 {% if is_opening %}
82 {% cache 600 post_thread thread.id thread.last_edit_time LANGUAGE_CODE need_open_link %}
82 {% cache 600 post_thread thread.id thread.last_edit_time LANGUAGE_CODE need_open_link %}
83 <div class="metadata">
83 <div class="metadata">
84 {% if is_opening and need_open_link %}
84 {% if is_opening and need_open_link %}
85 {{ thread.get_images_count }} {% trans 'images' %}.
85 {{ thread.get_images_count }} {% trans 'images' %}.
86 {% endif %}
86 {% endif %}
87 <span class="tags">
87 <span class="tags">
88 {% for tag in thread.get_tags %}
88 {% for tag in thread.get_tags %}
89 <a class="tag" href="{% url 'tag' tag.name %}">
89 <a class="tag" href="{% url 'tag' tag.name %}">
90 #{{ tag.name }}</a>{% if not forloop.last %},{% endif %}
90 #{{ tag.name }}</a>{% if not forloop.last %},{% endif %}
91 {% endfor %}
91 {% endfor %}
92 </span>
92 </span>
93 </div>
93 </div>
94 {% endcache %}
94 {% endcache %}
95 {% endif %}
95 {% endif %}
96 </div>
96 </div>
97 {% endspaceless %}
97 {% endspaceless %}
General Comments 0
You need to be logged in to leave comments. Login now