From 69133f184f0f9b53a3b0a39f91e8eba99698cabc Mon Sep 17 00:00:00 2001 From: Christian Merten Date: Sun, 24 Nov 2024 14:09:05 +0100 Subject: [PATCH] sidebar: add logout and password change links --- templates/admin/base.html | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/templates/admin/base.html b/templates/admin/base.html index 8dca696..27fadb6 100755 --- a/templates/admin/base.html +++ b/templates/admin/base.html @@ -196,9 +196,24 @@ django.gettext = window.gettext {% endif %} - {% block nav-global %}{% endblock %} - - + {% if user.is_active and user.is_staff %} + {% if user.has_usable_password %} + + + + {% trans 'Change password' %} + + + {% endif %} + + + + {% trans 'Log out' %} + + + {% endif %} + {% block nav-global %}{% endblock %} + {% if user.is_active and user.is_staff %} {% jet_get_menu as app_list %} {% if SIDE_MENU_COMPACT %}