mirror of
https://github.com/go-gitea/gitea
synced 2024-12-15 11:04:03 +01:00
Optimize profile layout to enhance visual experience (#31278)
Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
parent
e25d6960b5
commit
a975ce8d9d
1 changed files with 2 additions and 10 deletions
|
@ -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}}
|
||||
|
|
Loading…
Reference in a new issue