{% load i18n icons permissions translations user_display %}
{% for comment in comments %}
{% user_display comment.user resource=comment %}

{% 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 %}
{% user_markdown comment.comment %} {{ comment.timestamp|naturaltime }}
{% endfor %}