Comments: Only show if there are actually comments
No negative text "no comments"
This commit is contained in:
parent
1563f4142d
commit
5df68c4ead
@ -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) }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user