From f6895f632e305841b5298c09cb9ad0b064ab79bd Mon Sep 17 00:00:00 2001 From: Giteabot Date: Mon, 24 Nov 2025 06:07:44 +0800 Subject: [PATCH] Add "site admin" back to profile menu (#36010) (#36013) Backport #36010 by @wxiaoguang Fix #35904 Co-authored-by: wxiaoguang --- templates/base/head_navbar.tmpl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl index b721779c95..8cb72d6f98 100644 --- a/templates/base/head_navbar.tmpl +++ b/templates/base/head_navbar.tmpl @@ -120,6 +120,13 @@ {{svg "octicon-question"}} {{ctx.Locale.Tr "help"}} + {{if .IsAdmin}} +
+ + {{svg "octicon-server"}} + {{ctx.Locale.Tr "admin_panel"}} + + {{end}}
{{svg "octicon-sign-out"}}