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.

166 lines
10 KiB

10 years ago
10 years ago
10 years ago
10 years ago
  1. {{template "ng/base/head" .}}
  2. {{template "ng/base/header" .}}
  3. <div id="admin-wrapper">
  4. <div id="setting-wrapper" class="main-wrapper">
  5. <div id="repo-setting" class="container clear">
  6. {{template "admin/nav" .}}
  7. <div class="grid-4-5 left">
  8. <div class="setting-content">
  9. {{template "ng/base/alert" .}}
  10. <div id="setting-content">
  11. <div class="panel panel-radius">
  12. <div class="panel-header">
  13. <strong>{{.i18n.Tr "admin.dashboard.statistic"}}</strong>
  14. </div>
  15. <div class="panel-body">
  16. <p class="admin-desc">
  17. {{.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}}
  18. </div>
  19. </div>
  20. <br>
  21. <div class="panel panel-radius">
  22. <div class="panel-header">
  23. <strong>{{.i18n.Tr "admin.dashboard.operations"}}</strong>
  24. </div>
  25. <div class="panel-body admin-panel">
  26. <div class="admin-table">
  27. <table class="table">
  28. <thead>
  29. <tr>
  30. <th>{{.i18n.Tr "admin.dashboard.operation_name"}}</th>
  31. <th>{{.i18n.Tr "admin.dashboard.operation_switch"}}</th>
  32. </tr>
  33. </thead>
  34. <tbody>
  35. <tr>
  36. <td>{{.i18n.Tr "admin.dashboard.clean_unbind_oauth"}}</td>
  37. <td><i class="fa fa-caret-square-o-right"></i> <a href="{{AppSubUrl}}/admin?op=1">{{.i18n.Tr "admin.dashboard.operation_run"}}</a></td>
  38. </tr>
  39. <tr>
  40. <td>{{.i18n.Tr "admin.dashboard.delete_inactivate_accounts"}}</td>
  41. <td><i class="fa fa-caret-square-o-right"></i> <a href="{{AppSubUrl}}/admin?op=2">{{.i18n.Tr "admin.dashboard.operation_run"}}</a></td>
  42. </tr>
  43. <tr>
  44. <td>{{.i18n.Tr "admin.dashboard.delete_repo_archives"}}</td>
  45. <td><i class="fa fa-caret-square-o-right"></i> <a href="{{AppSubUrl}}/admin?op=3">{{.i18n.Tr "admin.dashboard.operation_run"}}</a></td>
  46. </tr>
  47. <tr>
  48. <td>{{.i18n.Tr "admin.dashboard.git_gc_repos"}}</td>
  49. <td><i class="fa fa-caret-square-o-right"></i> <a href="{{AppSubUrl}}/admin?op=4">{{.i18n.Tr "admin.dashboard.operation_run"}}</a></td>
  50. </tr>
  51. <tr>
  52. <td>{{.i18n.Tr "admin.dashboard.resync_all_sshkeys"}}</td>
  53. <td><i class="fa fa-caret-square-o-right"></i> <a href="{{AppSubUrl}}/admin?op=5">{{.i18n.Tr "admin.dashboard.operation_run"}}</a></td>
  54. </tr>
  55. <tr>
  56. <td>{{.i18n.Tr "admin.dashboard.resync_all_update_hooks"}}</td>
  57. <td><i class="fa fa-caret-square-o-right"></i> <a href="{{AppSubUrl}}/admin?op=6">{{.i18n.Tr "admin.dashboard.operation_run"}}</a></td>
  58. </tr>
  59. </tbody>
  60. </table>
  61. </div>
  62. </div>
  63. </div>
  64. <br>
  65. <div class="panel panel-radius">
  66. <div class="panel-header">
  67. <strong>{{.i18n.Tr "admin.dashboard.system_status"}}</strong>
  68. </div>
  69. <div class="panel-body">
  70. <dl class="dl-horizontal admin-dl-horizontal">
  71. <dt>{{.i18n.Tr "admin.dashboard.server_uptime"}}</dt>
  72. <dd>{{.SysStatus.Uptime}}</dd>
  73. <dt>{{.i18n.Tr "admin.dashboard.current_goroutine"}}</dt>
  74. <dd>{{.SysStatus.NumGoroutine}}</dd>
  75. <hr/>
  76. <dt>{{.i18n.Tr "admin.dashboard.current_memory_usage"}}</dt>
  77. <dd>{{.SysStatus.MemAllocated}}</dd>
  78. <dt>{{.i18n.Tr "admin.dashboard.total_memory_allocated"}}</dt>
  79. <dd>{{.SysStatus.MemTotal}}</dd>
  80. <dt>{{.i18n.Tr "admin.dashboard.memory_obtained"}}</dt>
  81. <dd>{{.SysStatus.MemSys}}</dd>
  82. <dt>{{.i18n.Tr "admin.dashboard.pointer_lookup_times"}}</dt>
  83. <dd>{{.SysStatus.Lookups}}</dd>
  84. <dt>{{.i18n.Tr "admin.dashboard.memory_allocate_times"}}</dt>
  85. <dd>{{.SysStatus.MemMallocs}}</dd>
  86. <dt>{{.i18n.Tr "admin.dashboard.memory_free_times"}}</dt>
  87. <dd>{{.SysStatus.MemFrees}}</dd>
  88. <hr/>
  89. <dt>{{.i18n.Tr "admin.dashboard.current_heap_usage"}}</dt>
  90. <dd>{{.SysStatus.HeapAlloc}}</dd>
  91. <dt>{{.i18n.Tr "admin.dashboard.heap_memory_obtained"}}</dt>
  92. <dd>{{.SysStatus.HeapSys}}</dd>
  93. <dt>{{.i18n.Tr "admin.dashboard.heap_memory_idle"}}</dt>
  94. <dd>{{.SysStatus.HeapIdle}}</dd>
  95. <dt>{{.i18n.Tr "admin.dashboard.heap_memory_in_use"}}</dt>
  96. <dd>{{.SysStatus.HeapInuse}}</dd>
  97. <dt>{{.i18n.Tr "admin.dashboard.heap_memory_released"}}</dt>
  98. <dd>{{.SysStatus.HeapReleased}}</dd>
  99. <dt>{{.i18n.Tr "admin.dashboard.heap_objects"}}</dt>
  100. <dd>{{.SysStatus.HeapObjects}}</dd>
  101. <hr/>
  102. <dt>{{.i18n.Tr "admin.dashboard.bootstrap_stack_usage"}}</dt>
  103. <dd>{{.SysStatus.StackInuse}}</dd>
  104. <dt>{{.i18n.Tr "admin.dashboard.stack_memory_obtained"}}</dt>
  105. <dd>{{.SysStatus.StackSys}}</dd>
  106. <dt>{{.i18n.Tr "admin.dashboard.mspan_structures_usage"}}</dt>
  107. <dd>{{.SysStatus.MSpanInuse}}</dd>
  108. <dt>{{.i18n.Tr "admin.dashboard.mspan_structures_obtained"}}</dt>
  109. <dd>{{.SysStatus.HeapSys}}</dd>
  110. <dt>{{.i18n.Tr "admin.dashboard.mcache_structures_usage"}}</dt>
  111. <dd>{{.SysStatus.MCacheInuse}}</dd>
  112. <dt>{{.i18n.Tr "admin.dashboard.mcache_structures_obtained"}}</dt>
  113. <dd>{{.SysStatus.MCacheSys}}</dd>
  114. <dt>{{.i18n.Tr "admin.dashboard.profiling_bucket_hash_table_obtained"}}</dt>
  115. <dd>{{.SysStatus.BuckHashSys}}</dd>
  116. <dt>{{.i18n.Tr "admin.dashboard.gc_metadata_obtained"}}</dt>
  117. <dd>{{.SysStatus.GCSys}}</dd>
  118. <dt>{{.i18n.Tr "admin.dashboard.other_system_allocation_obtained"}}</dt>
  119. <dd>{{.SysStatus.OtherSys}}</dd>
  120. <hr>
  121. <dt>{{.i18n.Tr "admin.dashboard.next_gc_recycle"}}</dt>
  122. <dd>{{.SysStatus.NextGC}}</dd>
  123. <dt>{{.i18n.Tr "admin.dashboard.last_gc_time"}}</dt>
  124. <dd>{{.SysStatus.LastGC}}</dd>
  125. <dt>{{.i18n.Tr "admin.dashboard.total_gc_pause"}}</dt>
  126. <dd>{{.SysStatus.PauseTotalNs}}</dd>
  127. <dt>{{.i18n.Tr "admin.dashboard.last_gc_pause"}}</dt>
  128. <dd>{{.SysStatus.PauseNs}}</dd>
  129. <dt>{{.i18n.Tr "admin.dashboard.gc_times"}}</dt>
  130. <dd>{{.SysStatus.NumGC}}</dd>
  131. </dl>
  132. </div>
  133. </div>
  134. </div>
  135. </div>
  136. </div>
  137. </div>
  138. </div>
  139. </div>
  140. {{template "ng/base/footer" .}}