From 9a07dc2a185b3391aff422b26ecdeb4ee2576272 Mon Sep 17 00:00:00 2001 From: Nicolas ROCHE Date: Tue, 6 Oct 2020 10:28:34 +0200 Subject: [PATCH] manager: move and rename consents button (#47266) --- .../authentic2/manager/user_detail.html | 12 ++++++++---- tests/test_user_manager.py | 17 +++++++++++------ 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/src/authentic2/manager/templates/authentic2/manager/user_detail.html b/src/authentic2/manager/templates/authentic2/manager/user_detail.html index caa710fa2..b3b7a0396 100644 --- a/src/authentic2/manager/templates/authentic2/manager/user_detail.html +++ b/src/authentic2/manager/templates/authentic2/manager/user_detail.html @@ -4,6 +4,8 @@ {% block appbar %} {{ block.super }} + + {% if view.can_delete %} {% trans "Delete" %} {% else %} @@ -16,9 +18,11 @@ {% trans "Edit" %} {% endif %} - {% if view.is_oidc_services %} - {% trans "Authorizations" %} - {% endif %} + {% endblock %} @@ -75,7 +79,7 @@