Comments: Only show if there are actually comments

No negative text "no comments"
This commit is contained in:
Pablo Vazquez 2017-09-16 20:11:16 +02:00
parent 1563f4142d
commit 5df68c4ead

View File

@ -66,10 +66,10 @@
| {% endif %}
| {% if show_comments %}
| {% if show_comments and (nr_of_comments > 0) %}
section#comments-list-header
#comments-list-title
| {% if nr_of_comments == 0 %}No{% else %}{{ nr_of_comments }}{% endif %} comment{{ nr_of_comments|pluralize }}
| {{ nr_of_comments }} comment{{ nr_of_comments|pluralize }}
#comments-list-items
| {% for comment in comments['_items'] %}
| {{ macros.render_comment(comment, False) }}