Browse Source
Merge pull request #298 from towards-a-new-leftypol/revert-289-download_filename
Revert "Filename clickable to download"
gitIgnore1
nonmakina
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
3 deletions
-
inc/instance-config.php
-
templates/post/fileinfo.html
|
|
@ -399,6 +399,7 @@ $config['additional_javascript'][] = 'js/file-selector.js'; |
|
|
|
$config['additional_javascript'][] = 'js/save-user_flag.js'; |
|
|
|
$config['additional_javascript'][] = 'js/webm-settings.js'; |
|
|
|
$config['additional_javascript'][] = 'js/expand-video.js'; |
|
|
|
$config['additional_javascript'][] = 'js/download-original.js'; |
|
|
|
|
|
|
|
$config['flag_preview'] = true; |
|
|
|
|
|
|
|
|
|
@ -22,9 +22,9 @@ |
|
|
|
{% if config.show_filename and file.filename %} |
|
|
|
, |
|
|
|
{% 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 %} |
|
|
|
<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 %} |
|
|
|
) |
|
|
@ -36,4 +36,3 @@ |
|
|
|
{% endfor %} |
|
|
|
</div> |
|
|
|
{% endif %} |
|
|
|
|
|
|
|