{% load i18n l10n %} {% load admin_list filermedia filer_tags %} {% load url from future %}
{% if paginator.count and not select_folder and not is_popup %}{% endif %} {% for item, item_perms in paginated_items.object_list %} {% if item.file_type == 'Folder' or item.file_type == 'DummyFolder' %}{% with item as subfolder%} {% endwith %}{% else %}{% with item as file %} {% endwith %}{% endif %} {% endfor %} {% if not folder.is_root %}{% ifequal folder.item_count 0 %} {% endifequal %}{% endif %}
  {% trans 'Name' %}
{% if select_folder and item.file_type == 'Folder' %} {% else %}{% if action_form and item.pk and not is_popup %}{% endif %}{% endif %} {% trans {% if item.file_type == 'Folder' and item_perms.change %} {% trans "Change" %} {% endif %}
{{ subfolder.name }}{% if not subfolder.is_root %} ({% blocktrans count subfolder.children_count as counter %}1 folder{% plural %}{{ counter }} folders{% endblocktrans %}, {% blocktrans count subfolder.file_count as counter %}1 file{% plural %}{{ counter }} files{% endblocktrans %}){% endif %}
{% trans "Owner" %}: {{ subfolder.owner|default:"n/a" }}
{% if is_popup and not select_folder %} {% else %}{% if action_form and not is_popup %}{% endif %}{% endif %} {% if item_perms.change %}{% endif %}{{ file.default_alt_text }}{% if item_perms.change %}{% endif %} {% if item_perms.change %} {% trans "Delete" %} {% trans "Change" %} {% endif %}
{% if item_perms.change %}{% endif %}{{ file.label }}{% if item_perms.change %}{% endif %} ({{ file.size|filesize:"auto1000long" }}{% ifequal file.file_type "Image" %}, {{ file.width }}x{{ file.height }} px{% endifequal %})
{% trans "Owner" %}: {{ file.owner|default:"n/a" }}
{% if enable_permissions %}
{% trans "Permissions" %}: {% if file.is_public %}{% trans "disabled" %}{% else %}{% trans "enabled" %}{% endif %}
{% endif %} {# {% if file.has_all_mandatory_data %}
0 {% trans "has all mandatory metadata" %}
{% else %}
1 {% trans "missing metadata!" %}
{% endif %} #}
{% trans "there are no files or subfolders" %}

{% if paginated_items.has_previous %} {% trans "previous" %} {% endif %} {% blocktrans with paginated_items.number as number and paginated_items.paginator.num_pages as num_pages %} Page {{ number }} of {{ num_pages }}. {% endblocktrans %} {% if paginated_items.has_next %} {% trans "next" %} {% endif %}