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 %}