From a975ce8d9db773b060b7233e91fd490b6a6bfe46 Mon Sep 17 00:00:00 2001 From: Kerwin Bryant Date: Wed, 12 Jun 2024 12:06:12 +0800 Subject: [PATCH] Optimize profile layout to enhance visual experience (#31278) Co-authored-by: silverwind --- 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 29c6eb0eb..106920949 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}}