]> source.dussan.org Git - gitea.git/commitdiff
Hide resync all ssh principals when using internal ssh server (#14904)
authorLunny Xiao <xiaolunwen@gmail.com>
Sat, 6 Mar 2021 07:32:08 +0000 (15:32 +0800)
committerGitHub <noreply@github.com>
Sat, 6 Mar 2021 07:32:08 +0000 (15:32 +0800)
Co-authored-by: 6543 <6543@obermui.de>
templates/admin/dashboard.tmpl

index e6d9f57c2e3b955971d2189aaa57a5b7f7a6c31a..de01f95eabd7bb09427c788d8b2a7acb0a6182a7 100644 (file)
                                                        <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>