summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMarcin Łabanowski <marcin@6irc.net>2014-05-10 21:55:04 +0200
committerMarcin Łabanowski <marcin@6irc.net>2014-05-10 21:55:04 +0200
commit7b57a4b9119f8e1e539957188c06c43831782349 (patch)
tree0feff6d76651becf66fa3b6a9fbb524e89469ae2 /templates
parenta6b8a73be47e4cfc024deb38aaafde13f3586039 (diff)
parentff51706bfd60373919e4820601cd697b55dc957a (diff)
Merge pull request #53 from 3edgy6u/master
Truncate filenames properly
Diffstat (limited to 'templates')
-rw-r--r--templates/post/fileinfo.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/post/fileinfo.html b/templates/post/fileinfo.html
index dcbb249d..c2a0aa6a 100644
--- a/templates/post/fileinfo.html
+++ b/templates/post/fileinfo.html
@@ -22,7 +22,7 @@
{% if config.show_filename and file.filename %}
,
{% if file.filename|length > config.max_filename_display %}
- <span class="postfilename" title="{{ file.filename|e }}">{{ file.filename|truncate(config.max_filename_display)|bidi_cleanup }}</span>
+ <span class="postfilename" title="{{ file.filename|e }}">{{ file.filename|truncate_filename(config.max_filename_display)|bidi_cleanup }}</span>
{% else %}
<span class="postfilename">{{ file.filename|e|bidi_cleanup }}</span>
{% endif %}