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:
2022-07-12 21:17:19 -07:00
parent c8fd8ffa89
commit b646509f75

View File

@@ -10,22 +10,6 @@
data-modify-url="{% url 'board:post_modify' post.id %}" data-modify-url="{% url 'board:post_modify' post.id %}"
{% endif %} {% 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 #} {# Post ID, status icons, username, time #}
{% if post.sticky and not post.op %} {% if post.sticky and not post.op %}
@@ -54,6 +38,23 @@ at {{post_created}}
{% endif %} {% endif %}
<a href="#" class="post_menu_button" data-id="post_menu_button"></a> <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 #} {# "X replies elided" dialog for OPs on the board #}
<div class="post_content"> <div class="post_content">
{% if replies_elided > 0 %} {% if replies_elided > 0 %}