2014-04-27 15:48:47 +02:00
|
|
|
{% if post.embed %}
|
|
|
|
{{ post.embed }}
|
|
|
|
{% else %}
|
|
|
|
<div class="files">
|
|
|
|
{% for file in post.files %}
|
2014-05-21 03:23:33 +02:00
|
|
|
<div class="file{% if post.num_files > 1 %} multifile" style="width:{{ file.thumbwidth + 40 }}px"{% else %}"{% endif %}>
|
2014-04-27 15:48:47 +02:00
|
|
|
{% if file.file == 'deleted' %}
|
2017-07-28 21:40:06 +02:00
|
|
|
<img class="post-image deleted" src="{{ config.root }}{{ config.image_deleted }}" alt="" />
|
2014-04-27 15:48:47 +02:00
|
|
|
{% else %}
|
2014-08-08 22:18:06 +02:00
|
|
|
<p class="fileinfo">File: <a href="{{ config.uri_img }}{{ file.file }}">{{ file.file }}</a> <span class="unimportant">
|
2014-04-27 15:48:47 +02:00
|
|
|
(
|
|
|
|
{% 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 %}
|
2014-08-08 22:18:06 +02:00
|
|
|
{% if config.show_filename and file.filename %}
|
|
|
|
,
|
|
|
|
{% 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>
|
|
|
|
{% else %}
|
|
|
|
<span class="postfilename">{{ file.filename|e|bidi_cleanup }}</span>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2014-04-27 15:48:47 +02:00
|
|
|
)
|
2014-08-08 23:09:33 +02:00
|
|
|
{% include "post/image_identification.html" %}
|
|
|
|
{% include "post/file_controls.html" %}</span></p>
|
2014-04-27 15:48:47 +02:00
|
|
|
{% include "post/image.html" with {'post':file} %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|