code.gitea.io/gitea@v1.22.3/templates/admin/dashboard.tmpl (about) 1 {{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin dashboard")}} 2 <div class="admin-setting-content"> 3 {{if .NeedUpdate}} 4 <div class="ui negative message flash-error"> 5 <p>{{ctx.Locale.Tr "admin.dashboard.new_version_hint" .RemoteVersion AppVer}}</p> 6 </div> 7 {{end}} 8 <h4 class="ui top attached header"> 9 {{ctx.Locale.Tr "admin.dashboard.maintenance_operations"}} 10 </h4> 11 <div class="ui attached table segment"> 12 <form method="post" action="{{AppSubUrl}}/admin"> 13 {{.CsrfTokenHtml}} 14 <table class="ui very basic table tw-mt-0 tw-px-4"> 15 <tbody> 16 <tr> 17 <td>{{ctx.Locale.Tr "admin.dashboard.delete_inactive_accounts"}}</td> 18 <td class="text right"><button type="submit" class="ui primary button" name="op" value="delete_inactive_accounts">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td> 19 </tr> 20 <tr> 21 <td>{{ctx.Locale.Tr "admin.dashboard.delete_repo_archives"}}</td> 22 <td class="text right"><button type="submit" class="ui primary button" name="op" value="delete_repo_archives">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td> 23 </tr> 24 <tr> 25 <td>{{ctx.Locale.Tr "admin.dashboard.delete_missing_repos"}}</td> 26 <td class="text right"><button type="submit" class="ui primary button" name="op" value="delete_missing_repos">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td> 27 </tr> 28 <tr> 29 <td>{{ctx.Locale.Tr "admin.dashboard.git_gc_repos"}}</td> 30 <td class="text right"><button type="submit" class="ui primary button" name="op" value="git_gc_repos">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td> 31 </tr> 32 {{if and (not .SSH.Disabled) (not .SSH.StartBuiltinServer)}} 33 <tr> 34 <td>{{ctx.Locale.Tr "admin.dashboard.resync_all_sshkeys"}}</td> 35 <td class="text right"><button type="submit" class="ui primary button" name="op" value="resync_all_sshkeys">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td> 36 </tr> 37 <tr> 38 <td>{{ctx.Locale.Tr "admin.dashboard.resync_all_sshprincipals"}}</td> 39 <td class="text right"><button type="submit" class="ui primary button" name="op" value="resync_all_sshprincipals">{{svg "octicon-play" 16}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td> 40 </tr> 41 {{end}} 42 <tr> 43 <td>{{ctx.Locale.Tr "admin.dashboard.resync_all_hooks"}}</td> 44 <td class="text right"><button type="submit" class="ui primary button" name="op" value="resync_all_hooks">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td> 45 </tr> 46 <tr> 47 <td>{{ctx.Locale.Tr "admin.dashboard.reinit_missing_repos"}}</td> 48 <td class="text right"><button type="submit" class="ui primary button" name="op" value="reinit_missing_repos">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td> 49 </tr> 50 <tr> 51 <td>{{ctx.Locale.Tr "admin.dashboard.sync_external_users"}}</td> 52 <td class="text right"><button type="submit" class="ui primary button" name="op" value="sync_external_users">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td> 53 </tr> 54 <tr> 55 <td>{{ctx.Locale.Tr "admin.dashboard.repo_health_check"}}</td> 56 <td class="text right"><button type="submit" class="ui primary button" name="op" value="repo_health_check">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td> 57 </tr> 58 <tr> 59 <td>{{ctx.Locale.Tr "admin.dashboard.delete_generated_repository_avatars"}}</td> 60 <td class="text right"><button type="submit" class="ui primary button" name="op" value="delete_generated_repository_avatars">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td> 61 </tr> 62 <tr> 63 <td>{{ctx.Locale.Tr "admin.dashboard.sync_repo_branches"}}</td> 64 <td class="text right"><button type="submit" class="ui primary button" name="op" value="sync_repo_branches">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td> 65 </tr> 66 <tr> 67 <td>{{ctx.Locale.Tr "admin.dashboard.sync_repo_tags"}}</td> 68 <td class="text right"><button type="submit" class="ui primary button" name="op" value="sync_repo_tags">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td> 69 </tr> 70 </tbody> 71 </table> 72 </form> 73 </div> 74 75 <h4 class="ui top attached header"> 76 {{ctx.Locale.Tr "admin.dashboard.system_status"}} 77 </h4> 78 {{/* TODO: make these stats work in multi-server deployments, likely needs per-server stats in DB */}} 79 <div class="ui attached table segment"> 80 <div class="no-loading-indicator tw-hidden"></div> 81 <div hx-get="{{$.Link}}/system_status" hx-swap="morph:innerHTML" hx-trigger="every 5s" hx-indicator=".no-loading-indicator"> 82 {{template "admin/system_status" .}} 83 </div> 84 </div> 85 </div> 86 {{template "admin/layout_footer" .}}