From 3ef774d7e0863ebccaf3090c68743e0025cb4810 Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 4 Sep 2025 15:15:37 +0200 Subject: [PATCH] Refactor --- templates/user/show.html.twig | 11 ++++------- templates/user/userInformation.html.twig | 4 ++-- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/templates/user/show.html.twig b/templates/user/show.html.twig index 0da6a8f..2aafdb9 100644 --- a/templates/user/show.html.twig +++ b/templates/user/show.html.twig @@ -14,9 +14,9 @@ {% if user.active %} Désactiver + class="btn btn-danger">Désactiver l'utilisateur {% else %} - Activer + Activer l'utilisateur {% endif %} {% endif %} @@ -24,13 +24,10 @@ {% endif %} {% include 'user/userInformation.html.twig' %} - {% if orgs|length >1 %} + {% if orgs|length >0 %}

Vos applications

- {% elseif orgs|length == 1 %} - {% for org in orgs %} -

{{ org.name }}

- {% endfor %} + {% else %}

Aucune application

{% endif %} diff --git a/templates/user/userInformation.html.twig b/templates/user/userInformation.html.twig index f4f5d7b..96bf868 100644 --- a/templates/user/userInformation.html.twig +++ b/templates/user/userInformation.html.twig @@ -14,13 +14,13 @@
- +
{% else %}
- +
{% endif %} {% endif %}