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.

129 lines
6.2 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. <table class="ui very basic table">
  19. <tbody>
  20. <tr>
  21. <td>{{.i18n.Tr "admin.dashboard.delete_inactivate_accounts"}}</td>
  22. <td><i class="fa fa-caret-square-o-right"></i> <a href="{{AppSubUrl}}/admin?op=1">{{.i18n.Tr "admin.dashboard.operation_run"}}</a></td>
  23. </tr>
  24. <tr>
  25. <td>{{.i18n.Tr "admin.dashboard.delete_repo_archives"}}</td>
  26. <td><i class="fa fa-caret-square-o-right"></i> <a href="{{AppSubUrl}}/admin?op=2">{{.i18n.Tr "admin.dashboard.operation_run"}}</a></td>
  27. </tr>
  28. <tr>
  29. <td>{{.i18n.Tr "admin.dashboard.delete_missing_repos"}}</td>
  30. <td><i class="fa fa-caret-square-o-right"></i> <a href="{{AppSubUrl}}/admin?op=3">{{.i18n.Tr "admin.dashboard.operation_run"}}</a></td>
  31. </tr>
  32. <tr>
  33. <td>{{.i18n.Tr "admin.dashboard.git_gc_repos"}}</td>
  34. <td><i class="fa fa-caret-square-o-right"></i> <a href="{{AppSubUrl}}/admin?op=4">{{.i18n.Tr "admin.dashboard.operation_run"}}</a></td>
  35. </tr>
  36. <tr>
  37. <td>{{.i18n.Tr "admin.dashboard.resync_all_sshkeys"}}</td>
  38. <td><i class="fa fa-caret-square-o-right"></i> <a href="{{AppSubUrl}}/admin?op=5">{{.i18n.Tr "admin.dashboard.operation_run"}}</a></td>
  39. </tr>
  40. <tr>
  41. <td>{{.i18n.Tr "admin.dashboard.resync_all_hooks"}}</td>
  42. <td><i class="fa fa-caret-square-o-right"></i> <a href="{{AppSubUrl}}/admin?op=6">{{.i18n.Tr "admin.dashboard.operation_run"}}</a></td>
  43. </tr>
  44. <tr>
  45. <td>{{.i18n.Tr "admin.dashboard.reinit_missing_repos"}}</td>
  46. <td><i class="fa fa-caret-square-o-right"></i> <a href="{{AppSubUrl}}/admin?op=7">{{.i18n.Tr "admin.dashboard.operation_run"}}</a></td>
  47. </tr>
  48. <tr>
  49. <td>{{.i18n.Tr "admin.dashboard.sync_external_users"}}</td>
  50. <td><i class="fa fa-caret-square-o-right"></i> <a href="{{AppSubUrl}}/admin?op=8">{{.i18n.Tr "admin.dashboard.operation_run"}}</a></td>
  51. </tr>
  52. <tr>
  53. <td>{{.i18n.Tr "admin.dashboard.git_fsck"}}</td>
  54. <td><i class="fa fa-caret-square-o-right"></i> <a href="{{AppSubUrl}}/admin?op=9">{{.i18n.Tr "admin.dashboard.operation_run"}}</a></td>
  55. </tr>
  56. </tbody>
  57. </table>
  58. </div>
  59. <h4 class="ui top attached header">
  60. {{.i18n.Tr "admin.dashboard.system_status"}}
  61. </h4>
  62. <div class="ui attached table segment">
  63. <dl class="dl-horizontal admin-dl-horizontal">
  64. <dt>{{.i18n.Tr "admin.dashboard.server_uptime"}}</dt>
  65. <dd>{{.SysStatus.Uptime}}</dd>
  66. <dt>{{.i18n.Tr "admin.dashboard.current_goroutine"}}</dt>
  67. <dd>{{.SysStatus.NumGoroutine}}</dd>
  68. <div class="ui divider"></div>
  69. <dt>{{.i18n.Tr "admin.dashboard.current_memory_usage"}}</dt>
  70. <dd>{{.SysStatus.MemAllocated}}</dd>
  71. <dt>{{.i18n.Tr "admin.dashboard.total_memory_allocated"}}</dt>
  72. <dd>{{.SysStatus.MemTotal}}</dd>
  73. <dt>{{.i18n.Tr "admin.dashboard.memory_obtained"}}</dt>
  74. <dd>{{.SysStatus.MemSys}}</dd>
  75. <dt>{{.i18n.Tr "admin.dashboard.pointer_lookup_times"}}</dt>
  76. <dd>{{.SysStatus.Lookups}}</dd>
  77. <dt>{{.i18n.Tr "admin.dashboard.memory_allocate_times"}}</dt>
  78. <dd>{{.SysStatus.MemMallocs}}</dd>
  79. <dt>{{.i18n.Tr "admin.dashboard.memory_free_times"}}</dt>
  80. <dd>{{.SysStatus.MemFrees}}</dd>
  81. <div class="ui divider"></div>
  82. <dt>{{.i18n.Tr "admin.dashboard.current_heap_usage"}}</dt>
  83. <dd>{{.SysStatus.HeapAlloc}}</dd>
  84. <dt>{{.i18n.Tr "admin.dashboard.heap_memory_obtained"}}</dt>
  85. <dd>{{.SysStatus.HeapSys}}</dd>
  86. <dt>{{.i18n.Tr "admin.dashboard.heap_memory_idle"}}</dt>
  87. <dd>{{.SysStatus.HeapIdle}}</dd>
  88. <dt>{{.i18n.Tr "admin.dashboard.heap_memory_in_use"}}</dt>
  89. <dd>{{.SysStatus.HeapInuse}}</dd>
  90. <dt>{{.i18n.Tr "admin.dashboard.heap_memory_released"}}</dt>
  91. <dd>{{.SysStatus.HeapReleased}}</dd>
  92. <dt>{{.i18n.Tr "admin.dashboard.heap_objects"}}</dt>
  93. <dd>{{.SysStatus.HeapObjects}}</dd>
  94. <div class="ui divider"></div>
  95. <dt>{{.i18n.Tr "admin.dashboard.bootstrap_stack_usage"}}</dt>
  96. <dd>{{.SysStatus.StackInuse}}</dd>
  97. <dt>{{.i18n.Tr "admin.dashboard.stack_memory_obtained"}}</dt>
  98. <dd>{{.SysStatus.StackSys}}</dd>
  99. <dt>{{.i18n.Tr "admin.dashboard.mspan_structures_usage"}}</dt>
  100. <dd>{{.SysStatus.MSpanInuse}}</dd>
  101. <dt>{{.i18n.Tr "admin.dashboard.mspan_structures_obtained"}}</dt>
  102. <dd>{{.SysStatus.HeapSys}}</dd>
  103. <dt>{{.i18n.Tr "admin.dashboard.mcache_structures_usage"}}</dt>
  104. <dd>{{.SysStatus.MCacheInuse}}</dd>
  105. <dt>{{.i18n.Tr "admin.dashboard.mcache_structures_obtained"}}</dt>
  106. <dd>{{.SysStatus.MCacheSys}}</dd>
  107. <dt>{{.i18n.Tr "admin.dashboard.profiling_bucket_hash_table_obtained"}}</dt>
  108. <dd>{{.SysStatus.BuckHashSys}}</dd>
  109. <dt>{{.i18n.Tr "admin.dashboard.gc_metadata_obtained"}}</dt>
  110. <dd>{{.SysStatus.GCSys}}</dd>
  111. <dt>{{.i18n.Tr "admin.dashboard.other_system_allocation_obtained"}}</dt>
  112. <dd>{{.SysStatus.OtherSys}}</dd>
  113. <div class="ui divider"></div>
  114. <dt>{{.i18n.Tr "admin.dashboard.next_gc_recycle"}}</dt>
  115. <dd>{{.SysStatus.NextGC}}</dd>
  116. <dt>{{.i18n.Tr "admin.dashboard.last_gc_time"}}</dt>
  117. <dd>{{.SysStatus.LastGC}}</dd>
  118. <dt>{{.i18n.Tr "admin.dashboard.total_gc_pause"}}</dt>
  119. <dd>{{.SysStatus.PauseTotalNs}}</dd>
  120. <dt>{{.i18n.Tr "admin.dashboard.last_gc_pause"}}</dt>
  121. <dd>{{.SysStatus.PauseNs}}</dd>
  122. <dt>{{.i18n.Tr "admin.dashboard.gc_times"}}</dt>
  123. <dd>{{.SysStatus.NumGC}}</dd>
  124. </dl>
  125. </div>
  126. </div>
  127. </div>
  128. {{template "base/footer" .}}