{% extends "scitex_sdk/app/app_shell.html" %} {% load i18n static scitex_static %} {% comment %} Storage organize tabs (Usage / Duplicates / Move), leaf-owned. Reuses the upstream .stx-storage-* classes so the tabs feel like one app. {% endcomment %} {% block extra_css %} {# Shared tab contracts (scitex-sdk>=0.3.9, underline-only selected); see index.html. #} {% endblock %} {% block scitex_app_content %}
{% include "scitex_storage/_app_header.html" %} {% if scope_notice %}

{{ scope_notice }}

{% endif %} {% if tab == "usage" %}

{% translate "Storage contents" %}

{% if scope == "project" and pscope %}

{% blocktranslate with name=project_name size=folder_total|filesizeformat %}Showing only {{ name }}: {{ size }}.{% endblocktranslate %}

{% else %}

{% blocktranslate with total=folder_total|filesizeformat %}{{ total }} in the selected storage location.{% endblocktranslate %}

{% endif %} {% if folder_note %}

{{ folder_note }}

{% endif %} {% if scope != "project" or not pscope %}
{% translate "Sunburst root:" %} {% for v in statuses %} {% if v.status == reachable %} {{ v.volume.label }} {% endif %} {% endfor %}
{% endif %}

{% translate "Open interactive sunburst" %}

{% translate "Zoomable: click a folder to go deeper, the breadcrumb climbs back. Capacity cards describe the filesystem, which may also contain other users’ data. The sunburst shows contents only within your authorized location." %}

{% if fleet_available %}

{% translate "Fleet visualizations" %}

{% translate "Fleet-wide capacity views rendered from the periodic fleet snapshot (Codecov-style sunburst, bubbles, table)." %}

{% translate "Sunburst" %} · {% translate "Bubbles" %} · {% translate "Fleet table" %}

{% endif %} {% if scope == "project" and pscope %} {% comment %}Project bytes are shown in the sunburst section above; no per-volume cards and no root picker under project scope.{% endcomment %} {% else %} {% if statuses %}

{% translate "Filesystem capacity (shared)" %}

{% for v in statuses %}

{% if v.volume.tier %}{{ v.volume.tier }}{% else %}{% translate "Storage" %}{% endif %}

{% if v.status == reachable %}

{% blocktranslate with used=v.used|filesizeformat total=v.total|filesizeformat free=v.free|filesizeformat pct=v.used_pct %}{{ used }} of {{ total }} used ({{ pct }}%) · {{ free }} free{% endblocktranslate %}

{% else %}

{% translate "This volume is not reachable from here." %}

{% endif %}
{% endfor %}
{% else %}

{% translate "No storage is assigned to your account yet." %}

{% endif %} {% endif %} {% elif tab == "duplicates" %}
{% translate "Read-only report." %} {% translate "Duplicate detection only ever lists groups — it never deletes, moves, or links anything. Resolving a group (keeping one copy, removing the rest) is a deliberate manual step, never automatic." %}
{% if unavailable_reason %}

{% translate "Duplicates unavailable" %}

{{ unavailable_reason }}

{% if roots %}

{% translate "Would scan:" %}

{% endif %}

{% translate "When available, this tab lists every byte-identical group with its paths and the reclaimable total — resolving stays a deliberate manual step." %}

{% else %}

{% blocktranslate with n=group_total %}{{ n }} duplicate groups{% endblocktranslate %}

{% if reclaimable %}

{% blocktranslate with size=reclaimable|filesizeformat %}Keeping one copy per group would reclaim {{ size }}.{% endblocktranslate %}

{% endif %} {% if not groups %}

{% translate "No byte-identical duplicates found in the scanned volumes." %}

{% endif %} {% if truncated %}

{% blocktranslate with total=group_total %}Showing the first 50 of {{ total }} groups.{% endblocktranslate %}

{% endif %}
{% endif %} {% endif %}
{% endblock %} {% block extra_js %} {% endblock %}