Skip to content

Commit

Permalink
Optimize profile layout to enhance visual experience (#31278)
Browse files Browse the repository at this point in the history
Co-authored-by: silverwind <me@silverwind.io>
  • Loading branch information
kerwin612 and silverwind authored Jun 12, 2024
1 parent e25d696 commit a975ce8
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions templates/shared/user/profile_big_avatar.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down

0 comments on commit a975ce8

Please sign in to comment.