From 0b87c79f59205cf92f2b735e9de8c61705e7fbf4 Mon Sep 17 00:00:00 2001 From: Kerwin Bryant Date: Fri, 7 Jun 2024 00:57:23 +0000 Subject: [PATCH 1/3] Optimize profile layout to enhance visual experience --- templates/shared/user/profile_big_avatar.tmpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/shared/user/profile_big_avatar.tmpl b/templates/shared/user/profile_big_avatar.tmpl index 29c6eb0eb0bd8..23ed0554a16c5 100644 --- a/templates/shared/user/profile_big_avatar.tmpl +++ b/templates/shared/user/profile_big_avatar.tmpl @@ -48,13 +48,13 @@
  • {{svg "octicon-mail"}} {{.ContextUser.Email}} - + {{if .ShowUserEmail}} - + {{svg "octicon-unlock"}} {{else}} - + {{svg "octicon-lock"}} {{end}} From 18771283d023b6b6744c15a3b5e7c58dbe73a5dd Mon Sep 17 00:00:00 2001 From: silverwind Date: Tue, 11 Jun 2024 23:26:32 +0200 Subject: [PATCH 2/3] remove the inner `` --- templates/shared/user/profile_big_avatar.tmpl | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/templates/shared/user/profile_big_avatar.tmpl b/templates/shared/user/profile_big_avatar.tmpl index 23ed0554a16c5..9edb7ade44acf 100644 --- a/templates/shared/user/profile_big_avatar.tmpl +++ b/templates/shared/user/profile_big_avatar.tmpl @@ -48,16 +48,8 @@
  • {{svg "octicon-mail"}} {{.ContextUser.Email}} - - {{if .ShowUserEmail}} - - {{svg "octicon-unlock"}} - - {{else}} - - {{svg "octicon-lock"}} - - {{end}} + + {{svg (Iif .ShowUserEmail "octicon-unlock" "octicon-lock")}}
  • {{else}} From ece2f4053090ca2e44195ed692dfb974e42dcd45 Mon Sep 17 00:00:00 2001 From: silverwind Date: Tue, 11 Jun 2024 23:28:50 +0200 Subject: [PATCH 3/3] simplify --- templates/shared/user/profile_big_avatar.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/shared/user/profile_big_avatar.tmpl b/templates/shared/user/profile_big_avatar.tmpl index 9edb7ade44acf..1069209495aad 100644 --- a/templates/shared/user/profile_big_avatar.tmpl +++ b/templates/shared/user/profile_big_avatar.tmpl @@ -48,7 +48,7 @@
  • {{svg "octicon-mail"}} {{.ContextUser.Email}} - + {{svg (Iif .ShowUserEmail "octicon-unlock" "octicon-lock")}}