Skip to content

Commit e96e440

Browse files
add a shortcut to user's profile page to admin user details (#27299)
1 parent 7065944 commit e96e440

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

templates/shared/user/profile_big_avatar.tmpl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313
</div>
1414
<div class="content gt-word-break profile-avatar-name">
1515
{{if .ContextUser.FullName}}<span class="header text center">{{.ContextUser.FullName}}</span>{{end}}
16-
<span class="username text center">{{.ContextUser.Name}}</span>
16+
<span class="username text center">{{.ContextUser.Name}} {{if .IsAdmin}}
17+
<a class="muted" href="{{AppSubUrl}}/admin/users/{{.ContextUser.ID}}" data-tooltip-content="{{ctx.Locale.Tr "admin.users.details"}}">
18+
{{svg "octicon-gear" 18}}
19+
</a>
20+
{{end}}</span>
1721
<div class="gt-mt-3">
1822
<a class="muted" href="{{.ContextUser.HomeLink}}?tab=followers">{{svg "octicon-person" 18 "gt-mr-2"}}{{.NumFollowers}} {{ctx.Locale.Tr "user.followers"}}</a> · <a class="muted" href="{{.ContextUser.HomeLink}}?tab=following">{{.NumFollowing}} {{ctx.Locale.Tr "user.following"}}</a>
1923
{{if .EnableFeed}}

0 commit comments

Comments
 (0)