From 717795ddffaff30cedb8c71b0ddb68f0ab087d59 Mon Sep 17 00:00:00 2001 From: Lorenzo Yario Date: Sat, 8 Feb 2025 22:26:17 -0600 Subject: [PATCH] Update fileinfo.html #891 --- templates/post/fileinfo.html | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/templates/post/fileinfo.html b/templates/post/fileinfo.html index ec490129..ae1dc092 100644 --- a/templates/post/fileinfo.html +++ b/templates/post/fileinfo.html @@ -1,16 +1,16 @@ {% if post.embed %} {{ post.embed }} - {% else %} -
- {% for file in post.files %} -
+ {% else %} +
+ {% for file in post.files %} +
{% if file.file == 'deleted' %} {% else %} -

File: {{ file.file }} +

File: {{ file.file }} ( {% if file.thumb == 'spoiler' %} - {% trans %}Spoiler Image{% endtrans %}, + {% trans %}Spoiler Image{% endtrans %}, {% endif %} {{ file.size|filesize }} {% if file.width and file.height %} @@ -21,18 +21,22 @@ {% endif %} {% if config.show_filename and file.filename %} , - {% if file.filename|length > config.max_filename_display %} - {{ file.filename|truncate_filename(config.max_filename_display)|e|bidi_cleanup }} + {% if file.thumb == 'spoiler' %} + {% trans %}Spoiler Image{% endtrans %} + {% elseif file.filename|length > config.max_filename_display %} + {{ file.filename|truncate_filename(config.max_filename_display)|e|bidi_cleanup }} {% else %} - {{ file.filename|e|bidi_cleanup }} + {{ file.filename|e|bidi_cleanup }} {% endif %} {% endif %} ) + {% include "post/image_identification.html" %} - {% include "post/file_controls.html" %}

+ {% include "post/file_controls.html" %} +

{% include "post/image.html" with {'post':file} %} {% endif %}
- {% endfor %} + {% endfor %}
- {% endif %} + {% endif %}