{% if comment.can('showAvatar') %}

{% set avatar = comment.getAvatar() %} {% if avatar %} {% else %} {% endif %}

{% endif %}
{{- comment.author.firstName ?? comment.author -}} {% if comment.parent %} {{- comment.parent.author.firstName ?? comment.parent.author -}} {% endif %} {% if comment.can('showTimeAgo') %} {% endif %} {% if comment.can('flag') %}
{{ csrfInput() }}
{% endif %}
{% if comment.isFlagged() %}

[{{ 'Comment marked as inappropriate' | t('comments') }}]

{% elseif comment.isPoorlyRated() %}

[{{ 'Comment hidden due to low rating' | t('comments') }}]

{% else %}

{{ comment.comment | nl2br }}

{% endif %}
{% if comment.children | length %} {% for nestedComment in comment.children %} {% include 'comment' with { comment: nestedComment } %} {% endfor %} {% endif %}