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

{% blocktranslate count counter=media|length trimmed %} Medium {% plural %} Media {% endblocktranslate %} {% if user|can_add_mlgr %}     {% translate 'Add' %} {% endif %}

{% if user|can_add_mlgr %} {% endif %} {% for medium in media %}
#{{ forloop.counter }}
{% with 'web/icons/'|add:medium.type|add:'.svg' as icon_path %} {% endwith %} {{ medium.title }}
{% if user|can_delete:medium %}     {% translate 'Remove' %} {% endif %}
{% if user|can_delete:medium %} {% endif %}
{% endfor %}