mirror of
https://github.com/go-gitea/gitea
synced 2024-12-27 21:36:03 +01:00
597b04fe2f
Backport #27231 #27259 manually --------- Co-authored-by: delvh <dev.lh@web.de>
37 lines
1.2 KiB
Handlebars
37 lines
1.2 KiB
Handlebars
{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin monitor")}}
|
|
<div class="admin-setting-content">
|
|
<h4 class="ui top attached header">
|
|
{{ctx.Locale.Tr "admin.monitor.queues"}}
|
|
</h4>
|
|
<div class="ui attached table segment">
|
|
<table class="ui very basic striped table unstackable">
|
|
<thead>
|
|
<tr>
|
|
<th>{{ctx.Locale.Tr "admin.monitor.queue.name"}}</th>
|
|
<th>{{ctx.Locale.Tr "admin.monitor.queue.type"}}</th>
|
|
<th>{{ctx.Locale.Tr "admin.monitor.queue.exemplar"}}</th>
|
|
<th>{{ctx.Locale.Tr "admin.monitor.queue.numberworkers"}}</th>
|
|
<th>{{ctx.Locale.Tr "admin.monitor.queue.activeworkers"}}</th>
|
|
<th>{{ctx.Locale.Tr "admin.monitor.queue.numberinqueue"}}</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{range $qid, $q := .Queues}}
|
|
<tr>
|
|
<td>{{$q.GetName}}</td>
|
|
<td>{{$q.GetType}}</td>
|
|
<td>{{$q.GetItemTypeName}}</td>
|
|
<td>{{$q.GetWorkerNumber}}</td>
|
|
<td>{{$q.GetWorkerActiveNumber}}</td>
|
|
<td>{{$sum := $q.GetQueueItemNumber}}{{if lt $sum 0}}-{{else}}{{$sum}}{{end}}</td>
|
|
<td><a href="{{$.Link}}/{{$qid}}" class="button">{{ctx.Locale.Tr "admin.monitor.queue.review_add"}}</a></td>
|
|
</tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
{{template "admin/layout_footer" .}}
|
|
|