{% load translations %} {% load i18n %} {% load permissions %} {% for comment in comments %}
{{ comment.get_user_display }} {{ comment.timestamp|naturaltime }} {% if comment.language %} {% trans "Translation comment" %} {% else %} {% trans "Source string comment" %} {% endif %}
{% perm 'comment.delete' comment object as user_can_delete_comment %} {% if user_can_delete_comment %}
{% csrf_token %}
{% endif %}
{% render_comment comment %}
{% endfor %}