prerequis.html
30 lignes · 2069 octets
{% import "components/badge.html" as badge %} {% import "components/bouton.html" as b %} <ul class="flex flex-col border-t border-border"> {% for c in controles %} <li class="flex flex-col gap-xxs border-b border-border py-sm" data-controle="{{ c.cle }}"> <div class="flex flex-wrap items-center gap-sm"> {% call badge::badge(c.niveau.badge(), c.libelle) %}{% endcall %} </div> <p class="pl-xs text-sm text-muted-foreground">{{ c.detail }}</p> </li> {% endfor %} </ul> {% if ansible_absent && !root %} <p id="conseil-ansible" class="mt-md rounded-sm bg-muted p-md text-sm text-foreground">L'installeur ne tourne pas en root : installez Ansible vous-même, avec <code class="font-mono">pipx install ansible-core</code> (dans <code class="font-mono">~/.local/bin</code>) ou le paquet <code class="font-mono">ansible-core</code> de votre distribution (<code class="font-mono">sudo apt install ansible-core</code>), puis « Revérifier ».</p> {% endif %} {% if let Some(message) = message %} <div class="mt-md border-l-4 border-l-error bg-error-bg p-md text-sm text-foreground" role="alert">{{ message }}</div> {% endif %} <div class="mt-xl flex flex-wrap gap-sm"> <button type="button" class="{% call b::classes("outline") %}{% endcall %}" hx-get="/install/prerequis" hx-target="#prerequis" hx-swap="innerHTML">Revérifier</button> {% if ansible_absent && root %} <button type="button" class="{% call b::classes("outline") %}{% endcall %}" hx-post="/install/prerequis/ansible" hx-target="#prerequis" hx-swap="innerHTML" hx-disabled-elt="this">Installer Ansible</button> {% endif %} {% if bloquant %} <button type="button" class="{% call b::classes("default") %}{% endcall %}" disabled aria-describedby="raison-commencer">Commencer</button> <p id="raison-commencer" class="w-full text-sm text-error-ink">Corrigez d'abord les points bloquants ci-dessus.</p> {% else %} <button type="button" class="{% call b::classes("default") %}{% endcall %}" hx-post="/install/commencer" hx-swap="none">Commencer</button> {% endif %} </div>
GitRust