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.

125 lines
6.0 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. </tbody>
  53. </table>
  54. </div>
  55. <h4 class="ui top attached header">
  56. {{.i18n.Tr "admin.dashboard.system_status"}}
  57. </h4>
  58. <div class="ui attached table segment">
  59. <dl class="dl-horizontal admin-dl-horizontal">
  60. <dt>{{.i18n.Tr "admin.dashboard.server_uptime"}}</dt>
  61. <dd>{{.SysStatus.Uptime}}</dd>
  62. <dt>{{.i18n.Tr "admin.dashboard.current_goroutine"}}</dt>
  63. <dd>{{.SysStatus.NumGoroutine}}</dd>
  64. <div class="ui divider"></div>
  65. <dt>{{.i18n.Tr "admin.dashboard.current_memory_usage"}}</dt>
  66. <dd>{{.SysStatus.MemAllocated}}</dd>
  67. <dt>{{.i18n.Tr "admin.dashboard.total_memory_allocated"}}</dt>
  68. <dd>{{.SysStatus.MemTotal}}</dd>
  69. <dt>{{.i18n.Tr "admin.dashboard.memory_obtained"}}</dt>
  70. <dd>{{.SysStatus.MemSys}}</dd>
  71. <dt>{{.i18n.Tr "admin.dashboard.pointer_lookup_times"}}</dt>
  72. <dd>{{.SysStatus.Lookups}}</dd>
  73. <dt>{{.i18n.Tr "admin.dashboard.memory_allocate_times"}}</dt>
  74. <dd>{{.SysStatus.MemMallocs}}</dd>
  75. <dt>{{.i18n.Tr "admin.dashboard.memory_free_times"}}</dt>
  76. <dd>{{.SysStatus.MemFrees}}</dd>
  77. <div class="ui divider"></div>
  78. <dt>{{.i18n.Tr "admin.dashboard.current_heap_usage"}}</dt>
  79. <dd>{{.SysStatus.HeapAlloc}}</dd>
  80. <dt>{{.i18n.Tr "admin.dashboard.heap_memory_obtained"}}</dt>
  81. <dd>{{.SysStatus.HeapSys}}</dd>
  82. <dt>{{.i18n.Tr "admin.dashboard.heap_memory_idle"}}</dt>
  83. <dd>{{.SysStatus.HeapIdle}}</dd>
  84. <dt>{{.i18n.Tr "admin.dashboard.heap_memory_in_use"}}</dt>
  85. <dd>{{.SysStatus.HeapInuse}}</dd>
  86. <dt>{{.i18n.Tr "admin.dashboard.heap_memory_released"}}</dt>
  87. <dd>{{.SysStatus.HeapReleased}}</dd>
  88. <dt>{{.i18n.Tr "admin.dashboard.heap_objects"}}</dt>
  89. <dd>{{.SysStatus.HeapObjects}}</dd>
  90. <div class="ui divider"></div>
  91. <dt>{{.i18n.Tr "admin.dashboard.bootstrap_stack_usage"}}</dt>
  92. <dd>{{.SysStatus.StackInuse}}</dd>
  93. <dt>{{.i18n.Tr "admin.dashboard.stack_memory_obtained"}}</dt>
  94. <dd>{{.SysStatus.StackSys}}</dd>
  95. <dt>{{.i18n.Tr "admin.dashboard.mspan_structures_usage"}}</dt>
  96. <dd>{{.SysStatus.MSpanInuse}}</dd>
  97. <dt>{{.i18n.Tr "admin.dashboard.mspan_structures_obtained"}}</dt>
  98. <dd>{{.SysStatus.HeapSys}}</dd>
  99. <dt>{{.i18n.Tr "admin.dashboard.mcache_structures_usage"}}</dt>
  100. <dd>{{.SysStatus.MCacheInuse}}</dd>
  101. <dt>{{.i18n.Tr "admin.dashboard.mcache_structures_obtained"}}</dt>
  102. <dd>{{.SysStatus.MCacheSys}}</dd>
  103. <dt>{{.i18n.Tr "admin.dashboard.profiling_bucket_hash_table_obtained"}}</dt>
  104. <dd>{{.SysStatus.BuckHashSys}}</dd>
  105. <dt>{{.i18n.Tr "admin.dashboard.gc_metadata_obtained"}}</dt>
  106. <dd>{{.SysStatus.GCSys}}</dd>
  107. <dt>{{.i18n.Tr "admin.dashboard.other_system_allocation_obtained"}}</dt>
  108. <dd>{{.SysStatus.OtherSys}}</dd>
  109. <div class="ui divider"></div>
  110. <dt>{{.i18n.Tr "admin.dashboard.next_gc_recycle"}}</dt>
  111. <dd>{{.SysStatus.NextGC}}</dd>
  112. <dt>{{.i18n.Tr "admin.dashboard.last_gc_time"}}</dt>
  113. <dd>{{.SysStatus.LastGC}}</dd>
  114. <dt>{{.i18n.Tr "admin.dashboard.total_gc_pause"}}</dt>
  115. <dd>{{.SysStatus.PauseTotalNs}}</dd>
  116. <dt>{{.i18n.Tr "admin.dashboard.last_gc_pause"}}</dt>
  117. <dd>{{.SysStatus.PauseNs}}</dd>
  118. <dt>{{.i18n.Tr "admin.dashboard.gc_times"}}</dt>
  119. <dd>{{.SysStatus.NumGC}}</dd>
  120. </dl>
  121. </div>
  122. </div>
  123. </div>
  124. {{template "base/footer" .}}