aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2021-03-06 15:32:08 +0800
committerGitHub <noreply@github.com>2021-03-06 15:32:08 +0800
commitf4efa10f779bd5cfdbf3dbcf21680245cf18c49b (patch)
treeae1edb43d0fcb7ee580627895017b44fc83752f4
parent20f13bfdfc5f801e6db319d8d87da0ee139aa32e (diff)
downloadgitea-f4efa10f779bd5cfdbf3dbcf21680245cf18c49b.tar.gz
gitea-f4efa10f779bd5cfdbf3dbcf21680245cf18c49b.zip
Hide resync all ssh principals when using internal ssh server (#14904)
Co-authored-by: 6543 <6543@obermui.de>
-rw-r--r--templates/admin/dashboard.tmpl20
1 files changed, 10 insertions, 10 deletions
diff --git a/templates/admin/dashboard.tmpl b/templates/admin/dashboard.tmpl
index e6d9f57c2e..de01f95eab 100644
--- a/templates/admin/dashboard.tmpl
+++ b/templates/admin/dashboard.tmpl
@@ -36,18 +36,18 @@
<td><button type="submit" class="ui green button" name="op" value="git_gc_repos">{{svg "octicon-play"}} {{.i18n.Tr "admin.dashboard.operation_run"}}</button></td>
</tr>
{{if and (not .SSH.Disabled) (not .SSH.StartBuiltinServer)}}
- <tr>
- <td>{{.i18n.Tr "admin.dashboard.resync_all_sshkeys"}}<br/>
- {{.i18n.Tr "admin.dashboard.resync_all_sshkeys.desc"}}</td>
- <td><button type="submit" class="ui green button" name="op" value="resync_all_sshkeys">{{svg "octicon-play"}} {{.i18n.Tr "admin.dashboard.operation_run"}}</button></td>
- </tr>
+ <tr>
+ <td>{{.i18n.Tr "admin.dashboard.resync_all_sshkeys"}}<br/>
+ {{.i18n.Tr "admin.dashboard.resync_all_sshkeys.desc"}}</td>
+ <td><button type="submit" class="ui green button" name="op" value="resync_all_sshkeys">{{svg "octicon-play"}} {{.i18n.Tr "admin.dashboard.operation_run"}}</button></td>
+ </tr>
+ <tr>
+ <td>{{.i18n.Tr "admin.dashboard.resync_all_sshprincipals"}}<br/>
+ {{.i18n.Tr "admin.dashboard.resync_all_sshprincipals.desc"}}</td>
+ <td><button type="submit" class="ui green button" name="op" value="resync_all_sshprincipals">{{svg "octicon-play" 16}} {{.i18n.Tr "admin.dashboard.operation_run"}}</button></td>
+ </tr>
{{end}}
<tr>
- <td>{{.i18n.Tr "admin.dashboard.resync_all_sshprincipals"}}<br/>
- {{.i18n.Tr "admin.dashboard.resync_all_sshprincipals.desc"}}</td>
- <td><button type="submit" class="ui green button" name="op" value="resync_all_sshprincipals">{{svg "octicon-play" 16}} {{.i18n.Tr "admin.dashboard.operation_run"}}</button></td>
- </tr>
- <tr>
<td>{{.i18n.Tr "admin.dashboard.resync_all_hooks"}}</td>
<td><button type="submit" class="ui green button" name="op" value="resync_all_hooks">{{svg "octicon-play"}} {{.i18n.Tr "admin.dashboard.operation_run"}}</button></td>
</tr>