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()
|
* @see comment_preprocess_field()
|
||||||
*/
|
*/
|
||||||
#}
|
#}
|
||||||
{% if comments %}
|
{% if comments or comment_form %}
|
||||||
<section{{ attributes.addClass('section comment-section') }} data-headerbg="light">
|
<section{{ attributes.addClass('section comment-section') }} data-headerbg="light">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
{% if not label_hidden %}
|
{% if not label_hidden %}
|
||||||
|
@ -40,13 +40,19 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if comment_form %}
|
{% if comment_form %}
|
||||||
<div class="titlebar_links">
|
<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>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if comments %}
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{{ comments }}
|
{{ comments }}
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if comment_form %}
|
{% if comment_form %}
|
||||||
<div class="flow content">
|
<div class="flow content">
|
||||||
|
|
Loading…
Reference in a new issue