{% extends "base.html" %} {% block title %}{{ t("nav.storage") }} · {{ site.title }}{% endblock %} {% block content %}

{{ t("nav.storage") }}

{% if listing %} {{ tn("storage.items", listing.total) }} {% endif %}
{% if browser.read_only %} {{ t("storage.read_only") }} {% endif %}
{% if flash %}
{{ flash }}
{% endif %} {% if listing is none %}

{{ t("storage.back_root") }}

{% else %} {% if not browser.read_only %}

{{ t("storage.upload_limit", size=browser.max_upload_bytes|filesizeformat(true)) }} {{ listing.prefix or "/" }}.

{% endif %} {% if listing.entries %}
{% for entry in listing.entries %} {% if entry.is_folder %} {% else %} {% endif %} {% endfor %}
{{ t("storage.col.name") }} {{ t("storage.col.size") }} {{ t("storage.col.type") }} {{ t("storage.col.modified") }}
{{ entry.name }}/ — {{ t("storage.folder_kind") }} — {{ entry.name }} {% if entry.size is not none %}{{ entry.size|filesizeformat(true) }}{% else %}—{% endif %} {{ entry.content_type or "—" }} {{ entry.last_modified.strftime("%Y-%m-%d %H:%M") if entry.last_modified else "—" }}
{% else %}

{% if listing.prefix %}{{ t("storage.nothing_under") }} {{ listing.prefix }}.{% else %}{{ t("storage.empty") }}{% endif %}

{% endif %} {% if listing.pages > 1 %} {% endif %} {% endif %}
{% endblock %}