Show comments form even if no comments
This commit is contained in:
parent
5efe918b8d
commit
628d52a786
1 changed files with 8 additions and 2 deletions
|
@ -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">
|
||||
{% 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">
|
||||
|
|
Loading…
Reference in a new issue