Update post information to come before the image info in a post
The post number, username, subject, etc all come before the an image (if there is one) now, rather than sorta wedged afterwards. This seems to be working. Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -10,22 +10,6 @@
|
||||
data-modify-url="{% url 'board:post_modify' post.id %}"
|
||||
{% endif %}
|
||||
>
|
||||
{# Image #}
|
||||
{% if post.thumbnail %}
|
||||
{# Image info #}
|
||||
<div class="post_image_info">
|
||||
{% translate "File" %}
|
||||
<a href="{{post.image.url}}" target="_blank">{{post.original_image_name}}</a>
|
||||
({{post.image.size|measure_bytes}}, {{post.image_width}}x{{post.image_height}})
|
||||
</div>
|
||||
|
||||
{# Image thumbnail #}
|
||||
<div class="post_image_thumbnail">
|
||||
<a href="{{post.image.url}}" target="_blank">
|
||||
<img src="{{post.thumbnail.url}}">
|
||||
</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{# Post ID, status icons, username, time #}
|
||||
{% if post.sticky and not post.op %}
|
||||
@@ -54,6 +38,23 @@ at {{post_created}}
|
||||
{% endif %}
|
||||
<a href="#" class="post_menu_button" data-id="post_menu_button">▶</a>
|
||||
|
||||
{# Image #}
|
||||
{% if post.thumbnail %}
|
||||
{# Image info #}
|
||||
<div class="post_image_info">
|
||||
{% translate "File" %}
|
||||
<a href="{{post.image.url}}" target="_blank">{{post.original_image_name}}</a>
|
||||
({{post.image.size|measure_bytes}}, {{post.image_width}}x{{post.image_height}})
|
||||
</div>
|
||||
|
||||
{# Image thumbnail #}
|
||||
<div class="post_image_thumbnail">
|
||||
<a href="{{post.image.url}}" target="_blank">
|
||||
<img src="{{post.thumbnail.url}}">
|
||||
</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{# "X replies elided" dialog for OPs on the board #}
|
||||
<div class="post_content">
|
||||
{% if replies_elided > 0 %}
|
||||
|
||||
Reference in New Issue
Block a user