Merge pull request #298 from towards-a-new-leftypol/revert-289-download_filename

Revert "Filename clickable to download"
This commit is contained in:
nonmakina 2021-07-05 14:39:29 +02:00 committed by GitHub
commit b792bd7b07
2 changed files with 3 additions and 3 deletions

View File

@ -399,6 +399,7 @@ $config['additional_javascript'][] = 'js/file-selector.js';
$config['additional_javascript'][] = 'js/save-user_flag.js'; $config['additional_javascript'][] = 'js/save-user_flag.js';
$config['additional_javascript'][] = 'js/webm-settings.js'; $config['additional_javascript'][] = 'js/webm-settings.js';
$config['additional_javascript'][] = 'js/expand-video.js'; $config['additional_javascript'][] = 'js/expand-video.js';
$config['additional_javascript'][] = 'js/download-original.js';
$config['flag_preview'] = true; $config['flag_preview'] = true;

View File

@ -22,9 +22,9 @@
{% if config.show_filename and file.filename %} {% if config.show_filename and file.filename %}
, ,
{% if file.filename|length > config.max_filename_display %} {% if file.filename|length > config.max_filename_display %}
<a href="{{ config.uri_img }}{{ file.file }}" download="{{ file.filename }}" title="Save as original filename">{{ file.filename|truncate_filename(config.max_filename_display)|e|bidi_cleanup }}</a> <span class="postfilename" title="{{ file.filename|e|bidi_cleanup }}">{{ file.filename|truncate_filename(config.max_filename_display)|e|bidi_cleanup }}</span>
{% else %} {% else %}
<a href="{{ config.uri_img }}{{ file.file }}" download="{{ file.filename }}" title="Save as original filename">{{ file.filename|e|bidi_cleanup }}</a> <span class="postfilename">{{ file.filename|e|bidi_cleanup }}</span>
{% endif %} {% endif %}
{% endif %} {% endif %}
) )
@ -36,4 +36,3 @@
{% endfor %} {% endfor %}
</div> </div>
{% endif %} {% endif %}