dashboard.tmpl 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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.build_info"}}
  10. </h4>
  11. <div class="ui attached table segment">
  12. <dl class="dl-horizontal admin-dl-horizontal">
  13. <dt>{{.i18n.Tr "admin.dashboard.app_ver"}}</dt>
  14. <dd>{{AppVer}}</dd>
  15. <dt>{{.i18n.Tr "admin.dashboard.git_version"}}</dt>
  16. <dd>{{.GitVersion}}</dd>
  17. <dt>{{.i18n.Tr "admin.dashboard.go_version"}}</dt>
  18. <dd>{{.GoVersion}}</dd>
  19. <dt>{{.i18n.Tr "admin.dashboard.build_time"}}</dt>
  20. <dd>{{.BuildTime}}</dd>
  21. <dt>{{.i18n.Tr "admin.dashboard.build_commit"}}</dt>
  22. <dd>
  23. {{if .BuildCommit}}
  24. <a target="_blank" href="https://github.com/gogs/gogs/commit/{{.BuildCommit}}">{{.BuildCommit}} <i class="fa fa-external-link" aria-hidden="true"></i></a>
  25. {{else}}
  26. N/A
  27. {{end}}
  28. </dd>
  29. </dl>
  30. </div>
  31. <h4 class="ui top attached header">
  32. {{.i18n.Tr "admin.dashboard.statistic"}}
  33. </h4>
  34. <div class="ui attached segment">
  35. <p>
  36. {{.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}}
  37. </p>
  38. </div>
  39. <h4 class="ui top attached header">
  40. {{.i18n.Tr "admin.dashboard.operations"}}
  41. </h4>
  42. <div class="ui unstackable attached table segment">
  43. <table class="ui unstackable very basic table">
  44. <tbody>
  45. <tr>
  46. <td>{{.i18n.Tr "admin.dashboard.delete_inactivate_accounts"}}</td>
  47. <td><i class="fa fa-caret-square-o-right"></i> <a href="{{AppSubURL}}/admin?op=1">{{.i18n.Tr "admin.dashboard.operation_run"}}</a></td>
  48. </tr>
  49. <tr>
  50. <td>{{.i18n.Tr "admin.dashboard.delete_repo_archives"}}</td>
  51. <td><i class="fa fa-caret-square-o-right"></i> <a href="{{AppSubURL}}/admin?op=2">{{.i18n.Tr "admin.dashboard.operation_run"}}</a></td>
  52. </tr>
  53. <tr>
  54. <td>{{.i18n.Tr "admin.dashboard.delete_missing_repos"}}</td>
  55. <td><i class="fa fa-caret-square-o-right"></i> <a href="{{AppSubURL}}/admin?op=3">{{.i18n.Tr "admin.dashboard.operation_run"}}</a></td>
  56. </tr>
  57. <tr>
  58. <td>{{.i18n.Tr "admin.dashboard.git_gc_repos"}}</td>
  59. <td><i class="fa fa-caret-square-o-right"></i> <a href="{{AppSubURL}}/admin?op=4">{{.i18n.Tr "admin.dashboard.operation_run"}}</a></td>
  60. </tr>
  61. <tr>
  62. <td>{{.i18n.Tr "admin.dashboard.resync_all_sshkeys"}}</td>
  63. <td><i class="fa fa-caret-square-o-right"></i> <a href="{{AppSubURL}}/admin?op=5">{{.i18n.Tr "admin.dashboard.operation_run"}}</a></td>
  64. </tr>
  65. <tr>
  66. <td>{{.i18n.Tr "admin.dashboard.resync_all_hooks"}}</td>
  67. <td><i class="fa fa-caret-square-o-right"></i> <a href="{{AppSubURL}}/admin?op=6">{{.i18n.Tr "admin.dashboard.operation_run"}}</a></td>
  68. </tr>
  69. <tr>
  70. <td>{{.i18n.Tr "admin.dashboard.reinit_missing_repos"}}</td>
  71. <td><i class="fa fa-caret-square-o-right"></i> <a href="{{AppSubURL}}/admin?op=7">{{.i18n.Tr "admin.dashboard.operation_run"}}</a></td>
  72. </tr>
  73. </tbody>
  74. </table>
  75. </div>
  76. <h4 class="ui top attached header">
  77. {{.i18n.Tr "admin.dashboard.system_status"}}
  78. </h4>
  79. <div class="ui attached table segment">
  80. <dl class="dl-horizontal admin-dl-horizontal">
  81. <dt>{{.i18n.Tr "admin.dashboard.server_uptime"}}</dt>
  82. <dd>{{.SysStatus.Uptime}}</dd>
  83. <dt>{{.i18n.Tr "admin.dashboard.current_goroutine"}}</dt>
  84. <dd>{{.SysStatus.NumGoroutine}}</dd>
  85. <div class="ui divider"></div>
  86. <dt>{{.i18n.Tr "admin.dashboard.current_memory_usage"}}</dt>
  87. <dd>{{.SysStatus.MemAllocated}}</dd>
  88. <dt>{{.i18n.Tr "admin.dashboard.total_memory_allocated"}}</dt>
  89. <dd>{{.SysStatus.MemTotal}}</dd>
  90. <dt>{{.i18n.Tr "admin.dashboard.memory_obtained"}}</dt>
  91. <dd>{{.SysStatus.MemSys}}</dd>
  92. <dt>{{.i18n.Tr "admin.dashboard.pointer_lookup_times"}}</dt>
  93. <dd>{{.SysStatus.Lookups}}</dd>
  94. <dt>{{.i18n.Tr "admin.dashboard.memory_allocate_times"}}</dt>
  95. <dd>{{.SysStatus.MemMallocs}}</dd>
  96. <dt>{{.i18n.Tr "admin.dashboard.memory_free_times"}}</dt>
  97. <dd>{{.SysStatus.MemFrees}}</dd>
  98. <div class="ui divider"></div>
  99. <dt>{{.i18n.Tr "admin.dashboard.current_heap_usage"}}</dt>
  100. <dd>{{.SysStatus.HeapAlloc}}</dd>
  101. <dt>{{.i18n.Tr "admin.dashboard.heap_memory_obtained"}}</dt>
  102. <dd>{{.SysStatus.HeapSys}}</dd>
  103. <dt>{{.i18n.Tr "admin.dashboard.heap_memory_idle"}}</dt>
  104. <dd>{{.SysStatus.HeapIdle}}</dd>
  105. <dt>{{.i18n.Tr "admin.dashboard.heap_memory_in_use"}}</dt>
  106. <dd>{{.SysStatus.HeapInuse}}</dd>
  107. <dt>{{.i18n.Tr "admin.dashboard.heap_memory_released"}}</dt>
  108. <dd>{{.SysStatus.HeapReleased}}</dd>
  109. <dt>{{.i18n.Tr "admin.dashboard.heap_objects"}}</dt>
  110. <dd>{{.SysStatus.HeapObjects}}</dd>
  111. <div class="ui divider"></div>
  112. <dt>{{.i18n.Tr "admin.dashboard.bootstrap_stack_usage"}}</dt>
  113. <dd>{{.SysStatus.StackInuse}}</dd>
  114. <dt>{{.i18n.Tr "admin.dashboard.stack_memory_obtained"}}</dt>
  115. <dd>{{.SysStatus.StackSys}}</dd>
  116. <dt>{{.i18n.Tr "admin.dashboard.mspan_structures_usage"}}</dt>
  117. <dd>{{.SysStatus.MSpanInuse}}</dd>
  118. <dt>{{.i18n.Tr "admin.dashboard.mspan_structures_obtained"}}</dt>
  119. <dd>{{.SysStatus.HeapSys}}</dd>
  120. <dt>{{.i18n.Tr "admin.dashboard.mcache_structures_usage"}}</dt>
  121. <dd>{{.SysStatus.MCacheInuse}}</dd>
  122. <dt>{{.i18n.Tr "admin.dashboard.mcache_structures_obtained"}}</dt>
  123. <dd>{{.SysStatus.MCacheSys}}</dd>
  124. <dt>{{.i18n.Tr "admin.dashboard.profiling_bucket_hash_table_obtained"}}</dt>
  125. <dd>{{.SysStatus.BuckHashSys}}</dd>
  126. <dt>{{.i18n.Tr "admin.dashboard.gc_metadata_obtained"}}</dt>
  127. <dd>{{.SysStatus.GCSys}}</dd>
  128. <dt>{{.i18n.Tr "admin.dashboard.other_system_allocation_obtained"}}</dt>
  129. <dd>{{.SysStatus.OtherSys}}</dd>
  130. <div class="ui divider"></div>
  131. <dt>{{.i18n.Tr "admin.dashboard.next_gc_recycle"}}</dt>
  132. <dd>{{.SysStatus.NextGC}}</dd>
  133. <dt>{{.i18n.Tr "admin.dashboard.last_gc_time"}}</dt>
  134. <dd>{{.SysStatus.LastGC}}</dd>
  135. <dt>{{.i18n.Tr "admin.dashboard.total_gc_pause"}}</dt>
  136. <dd>{{.SysStatus.PauseTotalNs}}</dd>
  137. <dt>{{.i18n.Tr "admin.dashboard.last_gc_pause"}}</dt>
  138. <dd>{{.SysStatus.PauseNs}}</dd>
  139. <dt>{{.i18n.Tr "admin.dashboard.gc_times"}}</dt>
  140. <dd>{{.SysStatus.NumGC}}</dd>
  141. </dl>
  142. </div>
  143. </div>
  144. </div>
  145. </div>
  146. </div>
  147. {{template "base/footer" .}}