From 6285567b345b3cd690651d03d294ddfa34c088a7 Mon Sep 17 00:00:00 2001 From: mariusrklein Date: Sat, 6 Dec 2025 00:06:41 +0100 Subject: [PATCH] add sidebar link to personal profile --- jdav_web/locale/de/LC_MESSAGES/django.po | 14 +++++++++++++- jdav_web/templates/admin/base.html | 11 +++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/jdav_web/locale/de/LC_MESSAGES/django.po b/jdav_web/locale/de/LC_MESSAGES/django.po index 7caacfe..e43a2ed 100644 --- a/jdav_web/locale/de/LC_MESSAGES/django.po +++ b/jdav_web/locale/de/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-04-15 23:05+0200\n" +"POT-Creation-Date: 2025-12-06 00:00+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -135,6 +135,18 @@ msgstr "" msgid "You entered a wrong password." msgstr "Das eingegebene Passwort ist falsch." +#: templates/admin/base.html +msgid "My Profile" +msgstr "Mein Profil" + +#: templates/admin/base.html +msgid "Change password" +msgstr "Passwort ändern" + +#: templates/admin/base.html +msgid "Log out" +msgstr "Abmelden" + #: templates/admin/delete_confirmation.html #, python-format msgid "" diff --git a/jdav_web/templates/admin/base.html b/jdav_web/templates/admin/base.html index 4ab8144..773ed0f 100644 --- a/jdav_web/templates/admin/base.html +++ b/jdav_web/templates/admin/base.html @@ -75,6 +75,9 @@ django.gettext = window.gettext {% trans 'Documentation' %} / {% endif %} {% endif %} + {% if user.member %} + {% trans 'My Profile' %} / + {% endif %} {% if user.has_usable_password %} {% trans 'Change password' %} / {% endif %} @@ -198,6 +201,14 @@ django.gettext = window.gettext {% endif %} {% if user.is_active and user.is_staff %} + {% if user.member %} + + + + {% trans 'My Profile' %} + + + {% endif %} {% if user.has_usable_password %}