mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-18 00:56:42 +01:00
Handle posts without filenames.
If a post doesn't have a filename (such as because of a post event changing it), then don't show an empty filename with the post.
This commit is contained in:
parent
42b3e6eea6
commit
e45efbfe87
@ -63,7 +63,7 @@
|
||||
, {{ post.ratio }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if config.show_filename %}
|
||||
{% if config.show_filename and post.filename %}
|
||||
,
|
||||
{% if post.filename|length > config.max_filename_display %}
|
||||
<span title="{{ post.filename }}">{{ post.filename|truncate(config.max_filename_display) }}</span>
|
||||
|
@ -20,7 +20,7 @@
|
||||
, {{ post.ratio }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if config.show_filename %}
|
||||
{% if config.show_filename and post.filename %}
|
||||
,
|
||||
{% if post.filename|length > config.max_filename_display %}
|
||||
<span title="{{ post.filename }}">{{ post.filename|truncate(config.max_filename_display) }}</span>
|
||||
|
Loading…
x
Reference in New Issue
Block a user