From b646509f759838b894dafaebf0587368edb0dbba Mon Sep 17 00:00:00 2001 From: Alek Ratzloff Date: Tue, 12 Jul 2022 21:17:19 -0700 Subject: [PATCH] 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 --- board/templates/board/post_snippet.html | 33 +++++++++++++------------ 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/board/templates/board/post_snippet.html b/board/templates/board/post_snippet.html index 85ad8c1..768540e 100644 --- a/board/templates/board/post_snippet.html +++ b/board/templates/board/post_snippet.html @@ -10,22 +10,6 @@ data-modify-url="{% url 'board:post_modify' post.id %}" {% endif %} > -{# Image #} -{% if post.thumbnail %} -{# Image info #} -
- {% translate "File" %} - {{post.original_image_name}} - ({{post.image.size|measure_bytes}}, {{post.image_width}}x{{post.image_height}}) -
- -{# Image thumbnail #} -
- - - -
-{% endif %} {# Post ID, status icons, username, time #} {% if post.sticky and not post.op %} @@ -54,6 +38,23 @@ at {{post_created}} {% endif %} +{# Image #} +{% if post.thumbnail %} +{# Image info #} +
+ {% translate "File" %} + {{post.original_image_name}} + ({{post.image.size|measure_bytes}}, {{post.image_width}}x{{post.image_height}}) +
+ +{# Image thumbnail #} +
+ + + +
+{% endif %} + {# "X replies elided" dialog for OPs on the board #}
{% if replies_elided > 0 %}