diff --git a/templates/post/fileinfo.html b/templates/post/fileinfo.html index a551e8bb..40cb8345 100644 --- a/templates/post/fileinfo.html +++ b/templates/post/fileinfo.html @@ -1,37 +1,37 @@ - {% if post.embed %} - {{ post.embed }} + {% if post.embed %} + {{ post.embed }} {% else %}
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) }} - {% 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 }} - {% endif %} - {% endif %} - ) - {% include "post/image_identification.html" %} - {% include "post/file_controls.html" %}
- {% include "post/image.html" with {'post':file} %} - {% endif %} + {% if file.file == 'deleted' %} + + {% else %} +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) }} + {% 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 }} + {% endif %} + {% endif %} + ) + {% include "post/image_identification.html" %} + {% include "post/file_controls.html" %}
+ {% include "post/image.html" with {'post':file} %} + {% endif %}