diff options
author | Kerwin Bryant <kerwin612@qq.com> | 2024-06-12 12:06:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-12 04:06:12 +0000 |
commit | a975ce8d9db773b060b7233e91fd490b6a6bfe46 (patch) | |
tree | 20240940ac88806d387518a2c564237c8569eb08 | |
parent | e25d6960b5749fbf7f88ebb6b27878c0459817da (diff) | |
download | gitea-a975ce8d9db773b060b7233e91fd490b6a6bfe46.tar.gz gitea-a975ce8d9db773b060b7233e91fd490b6a6bfe46.zip |
Optimize profile layout to enhance visual experience (#31278)
Co-authored-by: silverwind <me@silverwind.io>
-rw-r--r-- | templates/shared/user/profile_big_avatar.tmpl | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/templates/shared/user/profile_big_avatar.tmpl b/templates/shared/user/profile_big_avatar.tmpl index 29c6eb0eb0..1069209495 100644 --- a/templates/shared/user/profile_big_avatar.tmpl +++ b/templates/shared/user/profile_big_avatar.tmpl @@ -48,16 +48,8 @@ <li> {{svg "octicon-mail"}} <a class="tw-flex-1" href="mailto:{{.ContextUser.Email}}" rel="nofollow">{{.ContextUser.Email}}</a> - <a href="{{AppSubUrl}}/user/settings#privacy-user-settings"> - {{if .ShowUserEmail}} - <i data-tooltip-content="{{ctx.Locale.Tr "user.email_visibility.limited"}}"> - {{svg "octicon-unlock"}} - </i> - {{else}} - <i data-tooltip-content="{{ctx.Locale.Tr "user.email_visibility.private"}}"> - {{svg "octicon-lock"}} - </i> - {{end}} + <a class="flex-text-inline" href="{{AppSubUrl}}/user/settings#privacy-user-settings" data-tooltip-content="{{ctx.Locale.Tr (Iif .ShowUserEmail "user.email_visibility.limited" "user.email_visibility.private")}}"> + {{svg (Iif .ShowUserEmail "octicon-unlock" "octicon-lock")}} </a> </li> {{else}} |