From f40538e6676da69758d384c34d6e4129316f121e Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sun, 8 Oct 2023 22:23:39 +0800 Subject: [PATCH] Remove unnecessary desc for openssh key cron task (#27515) --- options/locale/locale_en-US.ini | 2 -- templates/admin/dashboard.tmpl | 6 ++---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 4420af158..b7b99bd7a 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -2741,9 +2741,7 @@ dashboard.deleted_branches_cleanup = Clean-up deleted branches dashboard.update_migration_poster_id = Update migration poster IDs dashboard.git_gc_repos = Garbage collect all repositories dashboard.resync_all_sshkeys = Update the '.ssh/authorized_keys' file with Gitea SSH keys. -dashboard.resync_all_sshkeys.desc = (Not needed for the built-in SSH server.) dashboard.resync_all_sshprincipals = Update the '.ssh/authorized_principals' file with Gitea SSH principals. -dashboard.resync_all_sshprincipals.desc = (Not needed for the built-in SSH server.) dashboard.resync_all_hooks = Resynchronize pre-receive, update and post-receive hooks of all repositories. dashboard.reinit_missing_repos = Reinitialize all missing Git repositories for which records exist dashboard.sync_external_users = Synchronize external user data diff --git a/templates/admin/dashboard.tmpl b/templates/admin/dashboard.tmpl index 6cb6c38e1..65d9c370f 100644 --- a/templates/admin/dashboard.tmpl +++ b/templates/admin/dashboard.tmpl @@ -31,13 +31,11 @@ {{if and (not .SSH.Disabled) (not .SSH.StartBuiltinServer)}} - {{ctx.Locale.Tr "admin.dashboard.resync_all_sshkeys"}}
- {{ctx.Locale.Tr "admin.dashboard.resync_all_sshkeys.desc"}} + {{ctx.Locale.Tr "admin.dashboard.resync_all_sshkeys"}} - {{ctx.Locale.Tr "admin.dashboard.resync_all_sshprincipals"}}
- {{ctx.Locale.Tr "admin.dashboard.resync_all_sshprincipals.desc"}} + {{ctx.Locale.Tr "admin.dashboard.resync_all_sshprincipals"}} {{end}}