{% if grav.twig.enable_comments_plugin %} {% set scope = scope ?: 'data.' %}

{{'PLUGIN_COMMENTS.COMMENTS'|t}}

{% if grav.twig.commenting_enabled %} {{'PLUGIN_COMMENTS.ADD_NEW'|t}} {% endif %} {% include 'partials/comments.form.html.twig' %}
{% if grav.twig.comments|length %} {% set comments_visible = false %} {% for comment in grav.twig.comments %} {% if comment.approved == "true" %}
{% set comments_visible = true %} {% for level in range(0, comment.level|e) %} {% if level == comment.level|e %}
{% else %}
{% endif %} {% endfor %}
user icon {% if comment.site %} {{comment.author}} {% else %} {{comment.author}} {% endif %}
{{comment.text}}
{{nested}}
{% endif %} {% endfor %} {% endif %} {% if not comments_visible %} {{'PLUGIN_COMMENTS.COMMENTS_NONE'|t}} {% endif %}
{% endif %}