Skip to content

Commit 87d5a85

Browse files
authored
Add "site admin" back to profile menu (#36010)
Fix #35904
1 parent ed977d9 commit 87d5a85

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

templates/base/head_navbar.tmpl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,13 @@
120120
{{svg "octicon-question"}}
121121
{{ctx.Locale.Tr "help"}}
122122
</a>
123+
{{if .IsAdmin}}
124+
<div class="divider"></div>
125+
<a class="{{if .PageIsAdmin}}active {{end}}item" href="{{AppSubUrl}}/-/admin">
126+
{{svg "octicon-server"}}
127+
{{ctx.Locale.Tr "admin_panel"}}
128+
</a>
129+
{{end}}
123130
<div class="divider"></div>
124131
<a class="item link-action" href data-url="{{AppSubUrl}}/user/logout">
125132
{{svg "octicon-sign-out"}}

0 commit comments

Comments
 (0)