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.

150 lines
8.6 KiB

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