Use a different way to show the original filename

Conflicts:
	templates/post/fileinfo.html
This commit is contained in:
Jano Slota 2014-07-27 16:48:40 +02:00 committed by czaks
parent 8d8f66c701
commit d81a6c49e2
3 changed files with 17 additions and 51 deletions

View file

@ -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>