diff options
| author | Macil Tech <maciltech@gmail.com> | 2012-07-13 11:03:22 -0600 |
|---|---|---|
| committer | Macil Tech <maciltech@gmail.com> | 2013-01-19 00:39:29 -0600 |
| commit | f2d3e45fd3b21758fd12c0c4a23ce272cca18026 (patch) | |
| tree | a2b642b8878fe407c0baaac6e34226e38a45a445 /templates/post_thread.html | |
| parent | 322b902c8a316c4c64cb81cd5db0974817ca57f5 (diff) | |
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.
Diffstat (limited to 'templates/post_thread.html')
| -rw-r--r-- | templates/post_thread.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/post_thread.html b/templates/post_thread.html index da93c5dd..cf93bed0 100644 --- a/templates/post_thread.html +++ b/templates/post_thread.html @@ -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>
|
