From f4efa10f779bd5cfdbf3dbcf21680245cf18c49b Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sat, 6 Mar 2021 15:32:08 +0800 Subject: [PATCH] Hide resync all ssh principals when using internal ssh server (#14904) Co-authored-by: 6543 <6543@obermui.de> --- templates/admin/dashboard.tmpl | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/templates/admin/dashboard.tmpl b/templates/admin/dashboard.tmpl index e6d9f57c2..de01f95ea 100644 --- a/templates/admin/dashboard.tmpl +++ b/templates/admin/dashboard.tmpl @@ -36,17 +36,17 @@ {{if and (not .SSH.Disabled) (not .SSH.StartBuiltinServer)}} - - {{.i18n.Tr "admin.dashboard.resync_all_sshkeys"}}
- {{.i18n.Tr "admin.dashboard.resync_all_sshkeys.desc"}} - - + + {{.i18n.Tr "admin.dashboard.resync_all_sshkeys"}}
+ {{.i18n.Tr "admin.dashboard.resync_all_sshkeys.desc"}} + + + + {{.i18n.Tr "admin.dashboard.resync_all_sshprincipals"}}
+ {{.i18n.Tr "admin.dashboard.resync_all_sshprincipals.desc"}} + + {{end}} - - {{.i18n.Tr "admin.dashboard.resync_all_sshprincipals"}}
- {{.i18n.Tr "admin.dashboard.resync_all_sshprincipals.desc"}} - - {{.i18n.Tr "admin.dashboard.resync_all_hooks"}}