From 87d5a8507dc60dab2434689242b300c724832d87 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 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"}}