mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-12-01 02:27:24 +01:00
d81a6c49e2
Conflicts: templates/post/fileinfo.html
45 lines
1.5 KiB
HTML
45 lines
1.5 KiB
HTML
{% if post.embed %}
|
|
{{ post.embed }}
|
|
{% else %}
|
|
<div class="files">
|
|
{% for file in post.files %}
|
|
<div class="file{% if post.num_files > 1 %} multifile" style="width:{{ file.thumbwidth + 40 }}px"{% else %}"{% endif %}>
|
|
{% if file.file == 'deleted' %}
|
|
<img class="post-image deleted" src="{{ config.image_deleted }}" alt="" />
|
|
{% else %}
|
|
<p class="fileinfo">{% trans %}File:{% endtrans %} <a href="{{ config.uri_img }}{{ file.file }}"
|
|
{% if config.show_filename and file.filename %}
|
|
{% if config.download_filename %}
|
|
download="{{ file.filename|e|bidi_cleanup }}"
|
|
{% endif %}
|
|
{% if file.filename|length > config.max_filename_display %}
|
|
title="{{ file.filename|e|bidi_cleanup }}"
|
|
>{{ file.filename|truncate_filename(config.max_filename_display)|e|bidi_cleanup }}
|
|
{% else %}
|
|
>{{ file.filename|e|bidi_cleanup }}
|
|
{% endif %}
|
|
{% else %}
|
|
>{{ file.file }}
|
|
{% endif %}
|
|
</a> <span class="unimportant">
|
|
(
|
|
{% 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 %}
|
|
{% include "post/image_identification.html" %}
|
|
)
|
|
</span> {% include "post/file_controls.html" %}</p>
|
|
{% include "post/image.html" with {'post':file} %}
|
|
{% endif %}
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|