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.

137 lines
7.1 KiB

9 years ago
9 years ago
9 years ago
10 years ago
  1. {{template "base/head" .}}
  2. <div class="admin dashboard">
  3. {{template "admin/navbar" .}}
  4. <div class="ui container">
  5. {{template "base/alert" .}}
  6. <h4 class="ui top attached header">
  7. {{.i18n.Tr "admin.dashboard.statistic"}}
  8. </h4>
  9. <div class="ui attached segment">
  10. <p>
  11. {{.i18n.Tr "admin.dashboard.statistic_info" .Stats.Counter.User .Stats.Counter.Org .Stats.Counter.PublicKey .Stats.Counter.Repo .Stats.Counter.Watch .Stats.Counter.Star .Stats.Counter.Action .Stats.Counter.Access .Stats.Counter.Issue .Stats.Counter.Comment .Stats.Counter.Oauth .Stats.Counter.Follow .Stats.Counter.Mirror .Stats.Counter.Release .Stats.Counter.LoginSource .Stats.Counter.Webhook .Stats.Counter.Milestone .Stats.Counter.Label .Stats.Counter.HookTask .Stats.Counter.Team .Stats.Counter.UpdateTask .Stats.Counter.Attachment | Str2html}}
  12. </p>
  13. </div>
  14. <h4 class="ui top attached header">
  15. {{.i18n.Tr "admin.dashboard.operations"}}
  16. </h4>
  17. <div class="ui attached table segment">
  18. <form method="post" action="{{AppSubUrl}}/admin">
  19. {{.CsrfTokenHtml}}
  20. <table class="ui very basic table">
  21. <tbody>
  22. <tr>
  23. <td>{{.i18n.Tr "admin.dashboard.delete_inactive_accounts"}}</td>
  24. <td><button type="submit" class="ui green button" name="op" value="delete_inactive_accounts">{{svg "octicon-triangle-right" 16}} {{.i18n.Tr "admin.dashboard.operation_run"}}</button></td>
  25. </tr>
  26. <tr>
  27. <td>{{.i18n.Tr "admin.dashboard.delete_repo_archives"}}</td>
  28. <td><button type="submit" class="ui green button" name="op" value="delete_repo_archives">{{svg "octicon-triangle-right" 16}} {{.i18n.Tr "admin.dashboard.operation_run"}}</button></td>
  29. </tr>
  30. <tr>
  31. <td>{{.i18n.Tr "admin.dashboard.delete_missing_repos"}}</td>
  32. <td><button type="submit" class="ui green button" name="op" value="delete_missing_repos">{{svg "octicon-triangle-right" 16}} {{.i18n.Tr "admin.dashboard.operation_run"}}</button></td>
  33. </tr>
  34. <tr>
  35. <td>{{.i18n.Tr "admin.dashboard.git_gc_repos"}}</td>
  36. <td><button type="submit" class="ui green button" name="op" value="git_gc_repos">{{svg "octicon-triangle-right" 16}} {{.i18n.Tr "admin.dashboard.operation_run"}}</button></td>
  37. </tr>
  38. <tr>
  39. <td>{{.i18n.Tr "admin.dashboard.resync_all_sshkeys"}}<br/>
  40. {{.i18n.Tr "admin.dashboard.resync_all_sshkeys.desc"}}</td>
  41. <td><button type="submit" class="ui green button" name="op" value="resync_all_sshkeys">{{svg "octicon-triangle-right" 16}} {{.i18n.Tr "admin.dashboard.operation_run"}}</button></td>
  42. </tr>
  43. <tr>
  44. <td>{{.i18n.Tr "admin.dashboard.resync_all_hooks"}}</td>
  45. <td><button type="submit" class="ui green button" name="op" value="resync_all_hooks">{{svg "octicon-triangle-right" 16}} {{.i18n.Tr "admin.dashboard.operation_run"}}</button></td>
  46. </tr>
  47. <tr>
  48. <td>{{.i18n.Tr "admin.dashboard.reinit_missing_repos"}}</td>
  49. <td><button type="submit" class="ui green button" name="op" value="reinit_missing_repos">{{svg "octicon-triangle-right" 16}} {{.i18n.Tr "admin.dashboard.operation_run"}}</button></td>
  50. </tr>
  51. <tr>
  52. <td>{{.i18n.Tr "admin.dashboard.sync_external_users"}}</td>
  53. <td><button type="submit" class="ui green button" name="op" value="sync_external_users">{{svg "octicon-triangle-right" 16}} {{.i18n.Tr "admin.dashboard.operation_run"}}</button></td>
  54. </tr>
  55. <tr>
  56. <td>{{.i18n.Tr "admin.dashboard.repo_health_check"}}</td>
  57. <td><button type="submit" class="ui green button" name="op" value="repo_health_check">{{svg "octicon-triangle-right" 16}} {{.i18n.Tr "admin.dashboard.operation_run"}}</button></td>
  58. </tr>
  59. <tr>
  60. <td>{{.i18n.Tr "admin.dashboard.delete_generated_repository_avatars"}}</td>
  61. <td><button type="submit" class="ui green button" name="op" value="delete_generated_repository_avatars">{{svg "octicon-triangle-right" 16}} {{.i18n.Tr "admin.dashboard.operation_run"}}</button></td>
  62. </tr>
  63. </tbody>
  64. </table>
  65. </form>
  66. </div>
  67. <h4 class="ui top attached header">
  68. {{.i18n.Tr "admin.dashboard.system_status"}}
  69. </h4>
  70. <div class="ui attached table segment">
  71. <dl class="dl-horizontal admin-dl-horizontal">
  72. <dt>{{.i18n.Tr "admin.dashboard.server_uptime"}}</dt>
  73. <dd>{{.SysStatus.Uptime}}</dd>
  74. <dt>{{.i18n.Tr "admin.dashboard.current_goroutine"}}</dt>
  75. <dd>{{.SysStatus.NumGoroutine}}</dd>
  76. <div class="ui divider"></div>
  77. <dt>{{.i18n.Tr "admin.dashboard.current_memory_usage"}}</dt>
  78. <dd>{{.SysStatus.MemAllocated}}</dd>
  79. <dt>{{.i18n.Tr "admin.dashboard.total_memory_allocated"}}</dt>
  80. <dd>{{.SysStatus.MemTotal}}</dd>
  81. <dt>{{.i18n.Tr "admin.dashboard.memory_obtained"}}</dt>
  82. <dd>{{.SysStatus.MemSys}}</dd>
  83. <dt>{{.i18n.Tr "admin.dashboard.pointer_lookup_times"}}</dt>
  84. <dd>{{.SysStatus.Lookups}}</dd>
  85. <dt>{{.i18n.Tr "admin.dashboard.memory_allocate_times"}}</dt>
  86. <dd>{{.SysStatus.MemMallocs}}</dd>
  87. <dt>{{.i18n.Tr "admin.dashboard.memory_free_times"}}</dt>
  88. <dd>{{.SysStatus.MemFrees}}</dd>
  89. <div class="ui divider"></div>
  90. <dt>{{.i18n.Tr "admin.dashboard.current_heap_usage"}}</dt>
  91. <dd>{{.SysStatus.HeapAlloc}}</dd>
  92. <dt>{{.i18n.Tr "admin.dashboard.heap_memory_obtained"}}</dt>
  93. <dd>{{.SysStatus.HeapSys}}</dd>
  94. <dt>{{.i18n.Tr "admin.dashboard.heap_memory_idle"}}</dt>
  95. <dd>{{.SysStatus.HeapIdle}}</dd>
  96. <dt>{{.i18n.Tr "admin.dashboard.heap_memory_in_use"}}</dt>
  97. <dd>{{.SysStatus.HeapInuse}}</dd>
  98. <dt>{{.i18n.Tr "admin.dashboard.heap_memory_released"}}</dt>
  99. <dd>{{.SysStatus.HeapReleased}}</dd>
  100. <dt>{{.i18n.Tr "admin.dashboard.heap_objects"}}</dt>
  101. <dd>{{.SysStatus.HeapObjects}}</dd>
  102. <div class="ui divider"></div>
  103. <dt>{{.i18n.Tr "admin.dashboard.bootstrap_stack_usage"}}</dt>
  104. <dd>{{.SysStatus.StackInuse}}</dd>
  105. <dt>{{.i18n.Tr "admin.dashboard.stack_memory_obtained"}}</dt>
  106. <dd>{{.SysStatus.StackSys}}</dd>
  107. <dt>{{.i18n.Tr "admin.dashboard.mspan_structures_usage"}}</dt>
  108. <dd>{{.SysStatus.MSpanInuse}}</dd>
  109. <dt>{{.i18n.Tr "admin.dashboard.mspan_structures_obtained"}}</dt>
  110. <dd>{{.SysStatus.MSpanSys}}</dd>
  111. <dt>{{.i18n.Tr "admin.dashboard.mcache_structures_usage"}}</dt>
  112. <dd>{{.SysStatus.MCacheInuse}}</dd>
  113. <dt>{{.i18n.Tr "admin.dashboard.mcache_structures_obtained"}}</dt>
  114. <dd>{{.SysStatus.MCacheSys}}</dd>
  115. <dt>{{.i18n.Tr "admin.dashboard.profiling_bucket_hash_table_obtained"}}</dt>
  116. <dd>{{.SysStatus.BuckHashSys}}</dd>
  117. <dt>{{.i18n.Tr "admin.dashboard.gc_metadata_obtained"}}</dt>
  118. <dd>{{.SysStatus.GCSys}}</dd>
  119. <dt>{{.i18n.Tr "admin.dashboard.other_system_allocation_obtained"}}</dt>
  120. <dd>{{.SysStatus.OtherSys}}</dd>
  121. <div class="ui divider"></div>
  122. <dt>{{.i18n.Tr "admin.dashboard.next_gc_recycle"}}</dt>
  123. <dd>{{.SysStatus.NextGC}}</dd>
  124. <dt>{{.i18n.Tr "admin.dashboard.last_gc_time"}}</dt>
  125. <dd>{{.SysStatus.LastGC}}</dd>
  126. <dt>{{.i18n.Tr "admin.dashboard.total_gc_pause"}}</dt>
  127. <dd>{{.SysStatus.PauseTotalNs}}</dd>
  128. <dt>{{.i18n.Tr "admin.dashboard.last_gc_pause"}}</dt>
  129. <dd>{{.SysStatus.PauseNs}}</dd>
  130. <dt>{{.i18n.Tr "admin.dashboard.gc_times"}}</dt>
  131. <dd>{{.SysStatus.NumGC}}</dd>
  132. </dl>
  133. </div>
  134. </div>
  135. </div>
  136. {{template "base/footer" .}}