retab fileinfo.html

This commit is contained in:
towards-a-new-leftypol 2023-08-08 01:55:50 -04:00
parent 652ae7639e
commit 0dce0f1d8a
1 changed files with 30 additions and 30 deletions

View File

@ -1,37 +1,37 @@
{% if post.embed %} {% if post.embed %}
{{ post.embed }} {{ post.embed }}
{% else %} {% else %}
<div class="files"> <div class="files">
{% for file in post.files %} {% for file in post.files %}
<div class="file{% if post.num_files > 1 %} multifile" style="width:{{ file.thumbwidth + 40 }}px"{% else %}"{% endif %}> <div class="file{% if post.num_files > 1 %} multifile" style="width:{{ file.thumbwidth + 40 }}px"{% else %}"{% endif %}>
{% if file.file == 'deleted' %} {% if file.file == 'deleted' %}
<img class="post-image deleted" src="{{ config.root }}{{ config.image_deleted }}" alt="" /> <img class="post-image deleted" src="{{ config.root }}{{ config.image_deleted }}" alt="" />
{% else %} {% else %}
<p class="fileinfo">File: <a href="{{ config.uri_img }}{{ file.file }}" target="_blank">{{ file.file }}</a> <span class="details"> <p class="fileinfo">File: <a href="{{ config.uri_img }}{{ file.file }}" target="_blank">{{ file.file }}</a> <span class="details">
( (
{% if file.thumb == 'spoiler' %} {% if file.thumb == 'spoiler' %}
{% trans %}Spoiler Image{% endtrans %}, {% trans %}Spoiler Image{% endtrans %},
{% endif %} {% endif %}
{{ file.size|filesize }} {{ file.size|filesize }}
{% if file.width and file.height %} {% if file.width and file.height %}
, {{ file.width}}x{{ file.height }} , {{ file.width}}x{{ file.height }}
{% if config.show_ratio %} {% if config.show_ratio %}
, {{ ratio(file.width, file.height) }} , {{ ratio(file.width, file.height) }}
{% endif %} {% endif %}
{% endif %} {% endif %}
{% if config.show_filename and file.filename %} {% if config.show_filename and file.filename %}
, ,
{% if file.filename|length > config.max_filename_display %} {% if file.filename|length > config.max_filename_display %}
<span class="postfilename" title="{{ file.filename|e|bidi_cleanup }}">{{ file.filename|truncate_filename(config.max_filename_display)|e|bidi_cleanup }}</span> <span class="postfilename" title="{{ file.filename|e|bidi_cleanup }}">{{ file.filename|truncate_filename(config.max_filename_display)|e|bidi_cleanup }}</span>
{% else %} {% else %}
<span class="postfilename">{{ file.filename|e|bidi_cleanup }}</span> <span class="postfilename">{{ file.filename|e|bidi_cleanup }}</span>
{% endif %} {% endif %}
{% endif %} {% endif %}
) )
{% include "post/image_identification.html" %} {% include "post/image_identification.html" %}
{% include "post/file_controls.html" %}</span></p> {% include "post/file_controls.html" %}</span></p>
{% include "post/image.html" with {'post':file} %} {% include "post/image.html" with {'post':file} %}
{% endif %} {% endif %}
</div> </div>
{% endfor %} {% endfor %}
</div> </div>