You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

dashboard.tmpl 7.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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) | Str2html}}</p>
  6. </div>
  7. {{end}}
  8. <h4 class="ui top attached header">
  9. {{ctx.Locale.Tr "admin.dashboard.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 gt-mt-0 gt-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"}}<br>
  35. {{ctx.Locale.Tr "admin.dashboard.resync_all_sshkeys.desc"}}</td>
  36. <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>
  37. </tr>
  38. <tr>
  39. <td>{{ctx.Locale.Tr "admin.dashboard.resync_all_sshprincipals"}}<br>
  40. {{ctx.Locale.Tr "admin.dashboard.resync_all_sshprincipals.desc"}}</td>
  41. <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>
  42. </tr>
  43. {{end}}
  44. <tr>
  45. <td>{{ctx.Locale.Tr "admin.dashboard.resync_all_hooks"}}</td>
  46. <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>
  47. </tr>
  48. <tr>
  49. <td>{{ctx.Locale.Tr "admin.dashboard.reinit_missing_repos"}}</td>
  50. <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>
  51. </tr>
  52. <tr>
  53. <td>{{ctx.Locale.Tr "admin.dashboard.sync_external_users"}}</td>
  54. <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>
  55. </tr>
  56. <tr>
  57. <td>{{ctx.Locale.Tr "admin.dashboard.repo_health_check"}}</td>
  58. <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>
  59. </tr>
  60. <tr>
  61. <td>{{ctx.Locale.Tr "admin.dashboard.delete_generated_repository_avatars"}}</td>
  62. <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>
  63. </tr>
  64. <tr>
  65. <td>{{ctx.Locale.Tr "admin.dashboard.sync_repo_branches"}}</td>
  66. <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>
  67. </tr>
  68. </tbody>
  69. </table>
  70. </form>
  71. </div>
  72. <h4 class="ui top attached header">
  73. {{ctx.Locale.Tr "admin.dashboard.system_status"}}
  74. </h4>
  75. <div class="ui attached table segment">
  76. <dl class="admin-dl-horizontal">
  77. <dt>{{ctx.Locale.Tr "admin.dashboard.server_uptime"}}</dt>
  78. <dd><relative-time format="duration" datetime="{{.SysStatus.StartTime}}">{{.SysStatus.StartTime}}</relative-time></dd>
  79. <dt>{{ctx.Locale.Tr "admin.dashboard.current_goroutine"}}</dt>
  80. <dd>{{.SysStatus.NumGoroutine}}</dd>
  81. <div class="divider"></div>
  82. <dt>{{ctx.Locale.Tr "admin.dashboard.current_memory_usage"}}</dt>
  83. <dd>{{.SysStatus.MemAllocated}}</dd>
  84. <dt>{{ctx.Locale.Tr "admin.dashboard.total_memory_allocated"}}</dt>
  85. <dd>{{.SysStatus.MemTotal}}</dd>
  86. <dt>{{ctx.Locale.Tr "admin.dashboard.memory_obtained"}}</dt>
  87. <dd>{{.SysStatus.MemSys}}</dd>
  88. <dt>{{ctx.Locale.Tr "admin.dashboard.pointer_lookup_times"}}</dt>
  89. <dd>{{.SysStatus.Lookups}}</dd>
  90. <dt>{{ctx.Locale.Tr "admin.dashboard.memory_allocate_times"}}</dt>
  91. <dd>{{.SysStatus.MemMallocs}}</dd>
  92. <dt>{{ctx.Locale.Tr "admin.dashboard.memory_free_times"}}</dt>
  93. <dd>{{.SysStatus.MemFrees}}</dd>
  94. <div class="divider"></div>
  95. <dt>{{ctx.Locale.Tr "admin.dashboard.current_heap_usage"}}</dt>
  96. <dd>{{.SysStatus.HeapAlloc}}</dd>
  97. <dt>{{ctx.Locale.Tr "admin.dashboard.heap_memory_obtained"}}</dt>
  98. <dd>{{.SysStatus.HeapSys}}</dd>
  99. <dt>{{ctx.Locale.Tr "admin.dashboard.heap_memory_idle"}}</dt>
  100. <dd>{{.SysStatus.HeapIdle}}</dd>
  101. <dt>{{ctx.Locale.Tr "admin.dashboard.heap_memory_in_use"}}</dt>
  102. <dd>{{.SysStatus.HeapInuse}}</dd>
  103. <dt>{{ctx.Locale.Tr "admin.dashboard.heap_memory_released"}}</dt>
  104. <dd>{{.SysStatus.HeapReleased}}</dd>
  105. <dt>{{ctx.Locale.Tr "admin.dashboard.heap_objects"}}</dt>
  106. <dd>{{.SysStatus.HeapObjects}}</dd>
  107. <div class="divider"></div>
  108. <dt>{{ctx.Locale.Tr "admin.dashboard.bootstrap_stack_usage"}}</dt>
  109. <dd>{{.SysStatus.StackInuse}}</dd>
  110. <dt>{{ctx.Locale.Tr "admin.dashboard.stack_memory_obtained"}}</dt>
  111. <dd>{{.SysStatus.StackSys}}</dd>
  112. <dt>{{ctx.Locale.Tr "admin.dashboard.mspan_structures_usage"}}</dt>
  113. <dd>{{.SysStatus.MSpanInuse}}</dd>
  114. <dt>{{ctx.Locale.Tr "admin.dashboard.mspan_structures_obtained"}}</dt>
  115. <dd>{{.SysStatus.MSpanSys}}</dd>
  116. <dt>{{ctx.Locale.Tr "admin.dashboard.mcache_structures_usage"}}</dt>
  117. <dd>{{.SysStatus.MCacheInuse}}</dd>
  118. <dt>{{ctx.Locale.Tr "admin.dashboard.mcache_structures_obtained"}}</dt>
  119. <dd>{{.SysStatus.MCacheSys}}</dd>
  120. <dt>{{ctx.Locale.Tr "admin.dashboard.profiling_bucket_hash_table_obtained"}}</dt>
  121. <dd>{{.SysStatus.BuckHashSys}}</dd>
  122. <dt>{{ctx.Locale.Tr "admin.dashboard.gc_metadata_obtained"}}</dt>
  123. <dd>{{.SysStatus.GCSys}}</dd>
  124. <dt>{{ctx.Locale.Tr "admin.dashboard.other_system_allocation_obtained"}}</dt>
  125. <dd>{{.SysStatus.OtherSys}}</dd>
  126. <div class="divider"></div>
  127. <dt>{{ctx.Locale.Tr "admin.dashboard.next_gc_recycle"}}</dt>
  128. <dd>{{.SysStatus.NextGC}}</dd>
  129. <dt>{{ctx.Locale.Tr "admin.dashboard.last_gc_time"}}</dt>
  130. <dd>{{.SysStatus.LastGC}}</dd>
  131. <dt>{{ctx.Locale.Tr "admin.dashboard.total_gc_pause"}}</dt>
  132. <dd>{{.SysStatus.PauseTotalNs}}</dd>
  133. <dt>{{ctx.Locale.Tr "admin.dashboard.last_gc_pause"}}</dt>
  134. <dd>{{.SysStatus.PauseNs}}</dd>
  135. <dt>{{ctx.Locale.Tr "admin.dashboard.gc_times"}}</dt>
  136. <dd>{{.SysStatus.NumGC}}</dd>
  137. </dl>
  138. </div>
  139. </div>
  140. {{template "admin/layout_footer" .}}