{# borg/templates/partials/browse.html Verzeichnis-Browser-Content für ein Borg-Archiv. Wird per HTMX in #borg-archive-content getauscht. Variablen: item_id – Job-ID archive – Archiv-Name path – aktueller Verzeichnispfad (ohne führenden Slash) breadcrumbs – list[{label, path}] dirs – list[{name, path, mtime}] files – list[{name, path, size_fmt, mtime, mode}] parent_path – str | None (None = an der Wurzel) error – str | None total – Gesamtzahl der Einträge im Archiv #} {# ── Kopfzeile ──────────────────────────────────────────────────────────── #}
/ {{ archive }} {{ total }} Einträge gesamt {% if not error %} Verzeichnis {% endif %}
{# ── Breadcrumbs ─────────────────────────────────────────────────────────── #}
{% for crumb in breadcrumbs %} {% if not loop.last %} / {% else %} {{ crumb.label }} {% endif %} {% endfor %}
{# ── Fehler ──────────────────────────────────────────────────────────────── #} {% if error %}
{{ error }}
{# ── Dateiliste ──────────────────────────────────────────────────────────── #} {% else %}
{# Tabellen-Kopfzeile #}
Name Größe Geändert
{# Zurück-Button #} {% if parent_path is not none %} {% endif %} {# Verzeichnisse #} {% for d in dirs %} {% endfor %} {# Dateien #} {% for f in files %}
{{ f.name }}
{{ f.size_fmt }} {{ f.mtime }}
{% endfor %} {# Leer #} {% if not dirs and not files %}
Dieses Verzeichnis ist leer.
{% endif %}
{# ── Sticky Aktionsleiste (Mehrfachauswahl) ──────────────────────────────── #} {% endif %}
{% if not error %} {% endif %}