{% 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 %}
{% endif %}
{% if user_can_delete_comment %}
{% endif %}
{% if comment.resolved %} {% translate "Resolved comment" %} {% elif comment.unit.is_source %} {% translate "Source string comment" %} {% else %} {% translate "Translation comment" %} {% endif %}