2014-04-27 09:48:47 -04:00
|
|
|
{% if post.embed %}
|
|
|
|
{{ post.embed }}
|
|
|
|
{% else %}
|
|
|
|
<div class="files">
|
|
|
|
{% for file in post.files %}
|
2014-05-20 21:23:33 -04:00
|
|
|
<div class="file{% if post.num_files > 1 %} multifile" style="width:{{ file.thumbwidth + 40 }}px"{% else %}"{% endif %}>
|
2014-04-27 09:48:47 -04:00
|
|
|
{% if file.file == 'deleted' %}
|
|
|
|
<img class="post-image deleted" src="{{ config.image_deleted }}" alt="" />
|
|
|
|
{% else %}
|
2014-08-03 11:59:30 -04:00
|
|
|
<p class="fileinfo"><a href="{{ config.uri_img }}{{ file.file }}"
|
2014-07-27 10:48:40 -04:00
|
|
|
{% 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 %}
|
2014-08-03 11:56:13 -04:00
|
|
|
</a><br><span class="unimportant"><em>
|
2014-04-27 09:48:47 -04: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-03 11:56:13 -04:00
|
|
|
{% include "post/image_identification.html" %}
|
|
|
|
</em></span> {% include "post/file_controls.html" %}</p>
|
2014-04-27 09:48:47 -04:00
|
|
|
{% include "post/image.html" with {'post':file} %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|