aboutsummaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2020-10-09 00:43:15 +0800
committerGitHub <noreply@github.com>2020-10-08 12:43:15 -0400
commitf06ee37e243eb379e8b44936474ecc55a04ba955 (patch)
tree44c3eee01aa668af3be0064f91607ecbdb6aa154 /routers
parent529c5ffe12854ca78696053e12bff8673ad0f219 (diff)
downloadgitea-f06ee37e243eb379e8b44936474ecc55a04ba955.tar.gz
gitea-f06ee37e243eb379e8b44936474ecc55a04ba955.zip
Hide sync ssh keys button on admin dashboard if ssh disabled or builtin-ssh enabled (#13072)
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'routers')
-rw-r--r--routers/admin/admin.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/admin/admin.go b/routers/admin/admin.go
index 5dbc321e9d..d0f027f5f8 100644
--- a/routers/admin/admin.go
+++ b/routers/admin/admin.go
@@ -131,6 +131,7 @@ func Dashboard(ctx *context.Context) {
// FIXME: update periodically
updateSystemStatus()
ctx.Data["SysStatus"] = sysStatus
+ ctx.Data["SSH"] = setting.SSH
ctx.HTML(200, tplDashboard)
}