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:
Macil Tech 2012-07-13 11:03:22 -06:00
parent 322b902c8a
commit f2d3e45fd3
2 changed files with 2 additions and 2 deletions

View File

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

View File

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