{% extends "base.html" %} {% block title %}Vue globale des archives{% endblock %} {% block content %}

Vue globale des archives

Toutes les destinations — local, SSH et instances fédérées

↻ Rafraîchir
{% for loc in locations %}
{# En-tête de la section #}
{% if loc.type == "local" %} Local {% elif loc.type == "ssh" %} SSH {% else %} Instance {% endif %} {{ loc.label }} {% if loc.type == "instance" and loc.instance_url is defined %} {{ loc.instance_url }} {% endif %}
{# Erreur de connexion #} {% if loc.error %}
{{ loc.error }}
{% else %} {# Groupes par job #} {% set ns = namespace(has_content=false) %} {% for group in loc.groups %} {% if group.archives %} {% set ns.has_content = true %} {% endif %} {% endfor %} {% if loc.orphaned %}{% set ns.has_content = true %}{% endif %} {% if not ns.has_content %}
Aucune archive sur cette destination.
{% else %}
{% for group in loc.groups %} {% if group.archives %}
{# En-tête du groupe #}
{{ group.job.name }} {{ group.job.type }} rétention : {{ group.retention_label }}
{% if loc.type == "ssh" %}{% endif %} {% if loc.type == "instance" %}{% endif %}
{# Table des archives #}
{% for arch in group.archives %} {% endfor %}
Archive Taille Date
{{ arch.name }} {{ arch.size_human }} {{ arch.date_str }}
{% if loc.type == "ssh" %}{% endif %} {% if loc.type == "instance" %}{% endif %}
{% endif %} {% endfor %} {# Archives orphelines (ne correspondent à aucun job) #} {% if loc.orphaned %}
Sans job associé {{ loc.orphaned | length }} archive(s)
{% for arch in loc.orphaned %} {% endfor %}
{{ arch.name }} {{ arch.size_human }} {{ arch.date_str }}
{% if loc.type == "ssh" %}{% endif %} {% if loc.type == "instance" %}{% endif %}
{% endif %}
{% endif %} {% endif %}
{% endfor %}
{% endblock %}