dashboard.tmpl 5.9 KB

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