From c735b129a17d88ec7f8b88dda4c379a17ad5c822 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Mon, 24 Nov 2025 04:29:58 +0800 Subject: [PATCH] Add "site admin" back to profile menu (#36010) Fix #35904 --- 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 b721779c95753..8cb72d6f98e69 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"}}