summaryrefslogtreecommitdiff
path: root/templates/post
diff options
context:
space:
mode:
Diffstat (limited to 'templates/post')
-rw-r--r--templates/post/fileinfo.html24
1 files changed, 15 insertions, 9 deletions
diff --git a/templates/post/fileinfo.html b/templates/post/fileinfo.html
index f12857d2..7b7e278c 100644
--- a/templates/post/fileinfo.html
+++ b/templates/post/fileinfo.html
@@ -7,7 +7,21 @@
{% if file.file == 'deleted' %}
<img class="post-image deleted" src="{{ config.image_deleted }}" alt="" />
{% else %}
- <p class="fileinfo">File: <a href="{{ config.uri_img }}{{ file.file }}">{{ file.file }}</a> <span class="unimportant">
+ <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 %},
@@ -19,14 +33,6 @@
, {{ ratio(file.width, file.height) }}
{% endif %}
{% endif %}
- {% 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 %}
{% include "post/image_identification.html" %}
)
</span> {% include "post/file_controls.html" %}</p>