{% set can_comment = request.user.is_authenticated and comment_form and not comment_lock %}

{{ _('Comments') }} {% if can_comment %} {{ _('Write comment') }} {% endif %}

{% if can_comment %} {% endif %} {% if has_comments or comment_all_list %} {% elif not comment_lock %}

{{ _('There are no comments at the moment.') }}

{% endif %} {% if comment_lock %}
{{ _('Comments are disabled on this page.') }}
{% endif %}