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

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

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