{% load translations %} {% load i18n %} {% load permissions %} {% load icons %}
{% for comment in comments %}
{{ comment.get_user_display }}

{% if comment.resolved %} {% trans "Resolved comment" %} {% elif comment.unit.is_source %} {% trans "Source string comment" %} {% else %} {% trans "Translation comment" %} {% endif %}

{% perm 'comment.delete' comment as user_can_delete_comment %} {% if user_can_delete_comment %}
{% if not comment.resolved %}
{% csrf_token %}
{% endif %}
{% csrf_token %} {% if has_antispam and comment.user != user %} {% endif %}
{% endif %}
{{ comment.comment|markdown }} {{ comment.timestamp|naturaltime }}
{% endfor %}