From 3e394faf92be9ea4017a11f7717f4e6ce428734a Mon Sep 17 00:00:00 2001 From: Kevin Falcoz <0pc0defr@gmail.com> Date: Mon, 31 Jan 2022 16:40:37 +0100 Subject: [PATCH 1/5] Patch function "Display Name" into admin page --- core/admin/mailu/ui/templates/sidebar.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/admin/mailu/ui/templates/sidebar.html b/core/admin/mailu/ui/templates/sidebar.html index 6145bef3..7620f0e0 100644 --- a/core/admin/mailu/ui/templates/sidebar.html +++ b/core/admin/mailu/ui/templates/sidebar.html @@ -5,7 +5,11 @@
+ {%- if current_user.displayed_name %} + {{ current_user.displayed_name }} + {% else %} {{ current_user }} + {%- endif %}
{%- endif %} From c69f886a73da50b1a63a29c3212e7dd0b8710bc6 Mon Sep 17 00:00:00 2001 From: Kevin Falcoz <0pc0deFR@gmail.com> Date: Tue, 1 Feb 2022 09:10:51 +0100 Subject: [PATCH 2/5] Update code with ghostwheel42 comments --- core/admin/mailu/ui/templates/sidebar.html | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/admin/mailu/ui/templates/sidebar.html b/core/admin/mailu/ui/templates/sidebar.html index 7620f0e0..931842e8 100644 --- a/core/admin/mailu/ui/templates/sidebar.html +++ b/core/admin/mailu/ui/templates/sidebar.html @@ -5,11 +5,7 @@
- {%- if current_user.displayed_name %} - {{ current_user.displayed_name }} - {% else %} - {{ current_user }} - {%- endif %} + {{ current_user.displayed_name or current_user }}
{%- endif %} From 278d74ce6fdde65cb58eef0f85306a57d019244b Mon Sep 17 00:00:00 2001 From: Kevin Falcoz <0pc0defr@gmail.com> Date: Tue, 1 Feb 2022 13:53:11 +0100 Subject: [PATCH 3/5] Add title attribute on user-panel div --- core/admin/mailu/ui/templates/sidebar.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/admin/mailu/ui/templates/sidebar.html b/core/admin/mailu/ui/templates/sidebar.html index 931842e8..a57a2abe 100644 --- a/core/admin/mailu/ui/templates/sidebar.html +++ b/core/admin/mailu/ui/templates/sidebar.html @@ -1,6 +1,6 @@