dashboard.tmpl 6.1 KB

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