File tree 1 file changed +2
-10
lines changed
1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change 48
48
<li>
49
49
{{svg "octicon-mail"}}
50
50
<a class="tw-flex-1" href="mailto:{{.ContextUser.Email}}" rel="nofollow">{{.ContextUser.Email}}</a>
51
- <a href="{{AppSubUrl}}/user/settings#privacy-user-settings">
52
- {{if .ShowUserEmail}}
53
- <i data-tooltip-content="{{ctx.Locale.Tr "user.email_visibility.limited"}}">
54
- {{svg "octicon-unlock"}}
55
- </i>
56
- {{else}}
57
- <i data-tooltip-content="{{ctx.Locale.Tr "user.email_visibility.private"}}">
58
- {{svg "octicon-lock"}}
59
- </i>
60
- {{end}}
51
+ <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")}}">
52
+ {{svg (Iif .ShowUserEmail "octicon-unlock" "octicon-lock")}}
61
53
</a>
62
54
</li>
63
55
{{else}}
You can’t perform that action at this time.
0 commit comments