From d81a6c49e28133c65d237fc648be7fe323bfd54d Mon Sep 17 00:00:00 2001 From: Jano Slota Date: Sun, 27 Jul 2014 16:48:40 +0200 Subject: Use a different way to show the original filename Conflicts: templates/post/fileinfo.html --- templates/post/fileinfo.html | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'templates') 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' %} {% else %} -

File: {{ file.file }} +

{% trans %}File:{% endtrans %} 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 %} + ( {% 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 %} - {{ file.filename|truncate_filename(config.max_filename_display)|e|bidi_cleanup }} - {% else %} - {{ file.filename|e|bidi_cleanup }} - {% endif %} - {% endif %} {% include "post/image_identification.html" %} ) {% include "post/file_controls.html" %}

-- cgit v1.3