Show comments form even if no comments

This commit is contained in:
benjamin melançon 2019-01-29 11:42:20 -05:00
parent 5efe918b8d
commit 628d52a786

View file

@ -26,7 +26,7 @@
* @see comment_preprocess_field()
*/
#}
{% if comments %}
{% if comments or comment_form %}
<section{{ attributes.addClass('section comment-section') }} data-headerbg="light">
<div class="container">
{% if not label_hidden %}
@ -40,13 +40,19 @@
{% endif %}
{% if comment_form %}
<div class="titlebar_links">
<a href="#comment-form">Add new comment</a>
{% if comments %}
<a href="#comment-form">Add new comment</a>
{% else %}
No comments yet, <a href="#comment-form">be the first</a>!
{% endif %}
</div>
{% endif %}
{% if comments %}
<div class="content">
{{ comments }}
</div>
{% endif %}
{% if comment_form %}
<div class="flow content">