diff --git a/templates/post/fileinfo.html b/templates/post/fileinfo.html index a2384fe9..c1356176 100644 --- a/templates/post/fileinfo.html +++ b/templates/post/fileinfo.html @@ -1,37 +1,37 @@ - {% if post.embed %} - {{ post.embed }} - {% else %} +{% if post.embed %} + {{ post.embed }} +{% elseif post.num_files > 0 %}
File: {{ file.file }}
- (
- {% if file.thumb == 'spoiler' %}
- {% trans %}Spoiler Image{% endtrans %},
- {% endif %}
- {{ file.size|filesize }}
- {% if file.width and file.height %}
- , {{ file.width}}x{{ file.height }}
- {% if config.show_ratio %}
- , {{ ratio(file.width, file.height) }}
+ {% if file.file == 'deleted' %}
+ File: {{ file.file }}
+ (
+ {% if file.thumb == 'spoiler' %}
+ {% trans %}Spoiler Image{% endtrans %},
{% endif %}
- {% 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 }}
- {% else %}
- {{ file.filename|e|bidi_cleanup }}
+ {{ file.size|filesize }}
+ {% if file.width and file.height %}
+ , {{ file.width}}x{{ file.height }}
+ {% if config.show_ratio %}
+ , {{ ratio(file.width, file.height) }}
+ {% endif %}
{% endif %}
- {% endif %}
- )
- {% include "post/image_identification.html" %}
- {% include "post/file_controls.html" %}
+ {% else %}
+