{% load i18n static %} {% load check_permissions %}

{% blocktranslate count counter=comments|length trimmed %} Comment {% plural %} Comments {% endblocktranslate %} {% if user|has_create_permission %}     {% translate 'Add' %} {% endif %}

{% if user|has_create_permission %} {% endif %} {% for comment in comments %}
#{{ forloop.counter }} {# TODO: handle multiple descriptions? #} {% with description=comment.descriptions.first %}
{{ description.description_html }}
{% if user|has_update_permission:comment %}     {% translate 'Edit' %} {% endif %} {% if user|has_delete_permission:comment %}     {% translate 'Remove' %} {% endif %}
{% if user|has_update_permission:comment %} {% endif %} {% if user|has_delete_permission:comment %} {% endif %} {% endwith %}
{% endfor %}