{% load i18n %}

{% trans "Media" %}

{% with theme.media.all as media %}
{% csrf_token %} {% for item in media %} {% empty %} {% endfor %}
  {% trans "Name" %} {% trans "Modified" %} {% trans "Size" %} {% trans "Type" %} {% trans "Dimensions" %}
{% if item.thumbnail %} {% else %} {% endif %} {{ item }} {{ item.modified_on }} {{ item.size|filesizeformat }} {{ item.type }} {% if item.width and item.height %} {{ item.width }}×{{ item.height }} {% else %}   {% endif %}
{% trans "This theme has no media." %}
{% if media %} {% endif %}
{% endwith %}