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