dashboard.tmpl 9.3 KB

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