verification.html
28 lignes · 1961 octets
{% import "components/badge.html" as badge %} {# E010-C5 — résultat de la vérification préalable : chaque serveur joint en SSH (sonde d'E-003, OI-069), puis ce poste #} {% for s in serveurs %} <section class="mb-md" data-hote="{{ s.nom }}" aria-labelledby="verification-serveur-{{ loop.index }}"> <h3 id="verification-serveur-{{ loop.index }}" class="text-base text-foreground"><span class="font-mono">{{ s.nom }}</span> <span class="font-mono text-xs text-muted-foreground">{{ s.acces }}</span></h3> <ul class="mt-xs flex flex-col border-t border-border"> {% for (controle, ok, detail) in s.diagnostic.controles %} <li class="flex flex-col gap-xxs border-b border-border py-sm"> {% if *ok %}{% call badge::badge("ok", controle) %}{% endcall %}{% else %}{% call badge::badge("erreur", controle) %}{% endcall %}{% endif %} <p class="pl-xs text-sm text-muted-foreground">{{ detail }}</p> </li> {% endfor %} </ul> </section> {% endfor %} {% if !serveurs.is_empty() %}<h3 id="verification-poste" class="text-base text-foreground">Ce poste</h3>{% endif %} <ul class="{% if !serveurs.is_empty() %}mt-xs {% endif %}flex flex-col border-t border-border"{% if !serveurs.is_empty() %} aria-labelledby="verification-poste"{% endif %}> {% for c in controles %} <li class="flex flex-col gap-xxs border-b border-border py-sm" data-controle="{{ c.cle }}"> {% call badge::badge(c.niveau.badge(), c.libelle) %}{% endcall %} <p class="pl-xs text-sm text-muted-foreground">{{ c.detail }}</p> </li> {% endfor %} </ul> {% for m in manques %}<p class="mt-xs border-l-4 border-l-error bg-error-bg p-md text-sm text-foreground" role="alert">{{ m }}</p>{% endfor %} {% if reussie %}<p class="mt-md text-sm text-success">✓ Vérification réussie : vous pouvez lancer {% if ajouts.is_some() %}l'évolution{% else %}l'installation{% endif %}.</p>{% endif %} {% let verification = Some(self) %} {% include "assistant/lancer.html" %}
GitRust