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

{% blocktranslate count counter=texts|length trimmed %} Text {% plural %} Texts {% endblocktranslate %} {% if user|can_add_mlgr %}     {% translate 'Add' %} {% endif %}

{% if user|can_add_mlgr %} {% endif %}
{% for text in texts %}
{{ text.text|linebreaks }} {% if text.edition %} — {{ text.edition.descriptions.first.description }} {% endif %}
{% if user|can_change:text %}     {% translate 'Edit' %} {% endif %} {% if user|can_delete:text %}     {% translate 'Remove' %} {% endif %}
{% if user|can_change:text %} {% endif %} {% if user|can_delete:text %} {% endif %}
{% endfor %}
{% if texts|length >= 2 %}
{% for text in texts reversed %}
{{ text.text|linebreaks }} {% if text.edition %} — {{ text.edition.descriptions.first.description }} {% endif %}
{% endfor %}
{% endif %}