2023-04-23 18:21:21 +08:00
|
|
|
{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin monitor")}}
|
|
|
|
|
<div class="admin-setting-content">
|
2022-03-29 02:31:07 +01:00
|
|
|
{{template "admin/cron" .}}
|
2020-01-07 11:23:09 +00:00
|
|
|
<h4 class="ui top attached header">
|
2022-06-27 22:58:46 +02:00
|
|
|
{{.locale.Tr "admin.monitor.queues"}}
|
2020-01-07 11:23:09 +00:00
|
|
|
</h4>
|
|
|
|
|
<div class="ui attached table segment">
|
2022-05-01 16:11:21 +00:00
|
|
|
<table class="ui very basic striped table unstackable">
|
2020-01-07 11:23:09 +00:00
|
|
|
<thead>
|
|
|
|
|
<tr>
|
2022-06-27 22:58:46 +02:00
|
|
|
<th>{{.locale.Tr "admin.monitor.queue.name"}}</th>
|
|
|
|
|
<th>{{.locale.Tr "admin.monitor.queue.type"}}</th>
|
|
|
|
|
<th>{{.locale.Tr "admin.monitor.queue.exemplar"}}</th>
|
|
|
|
|
<th>{{.locale.Tr "admin.monitor.queue.numberworkers"}}</th>
|
|
|
|
|
<th>{{.locale.Tr "admin.monitor.queue.numberinqueue"}}</th>
|
2020-01-07 11:23:09 +00:00
|
|
|
<th></th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
{{range .Queues}}
|
|
|
|
|
<tr>
|
|
|
|
|
<td>{{.Name}}</td>
|
|
|
|
|
<td>{{.Type}}</td>
|
|
|
|
|
<td>{{.ExemplarType}}</td>
|
|
|
|
|
<td>{{$sum := .NumberOfWorkers}}{{if lt $sum 0}}-{{else}}{{$sum}}{{end}}</td>
|
2023-04-23 18:21:21 +08:00
|
|
|
<td>{{$sum = .NumberInQueue}}{{if lt $sum 0}}-{{else}}{{$sum}}{{end}}</td>
|
2022-06-27 22:58:46 +02:00
|
|
|
<td><a href="{{$.Link}}/queue/{{.QID}}" class="button">{{if lt $sum 0}}{{$.locale.Tr "admin.monitor.queue.review"}}{{else}}{{$.locale.Tr "admin.monitor.queue.review_add"}}{{end}}</a>
|
2020-01-07 11:23:09 +00:00
|
|
|
</tr>
|
|
|
|
|
{{end}}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
|
2021-11-30 20:06:32 +00:00
|
|
|
{{template "admin/process" .}}
|
2015-12-07 23:30:52 +01:00
|
|
|
</div>
|
2023-04-23 18:21:21 +08:00
|
|
|
|
2023-04-23 17:24:19 +08:00
|
|
|
<div class="ui gitea-confirm-modal delete modal">
|
|
|
|
|
<div class="header">
|
2022-06-27 22:58:46 +02:00
|
|
|
{{.locale.Tr "admin.monitor.process.cancel"}}
|
2019-11-30 08:40:22 -06:00
|
|
|
</div>
|
|
|
|
|
<div class="content">
|
2022-06-27 22:58:46 +02:00
|
|
|
<p>{{$.locale.Tr "admin.monitor.process.cancel_notices" `<span class="name"></span>` | Safe}}</p>
|
|
|
|
|
<p>{{$.locale.Tr "admin.monitor.process.cancel_desc"}}</p>
|
2019-11-30 08:40:22 -06:00
|
|
|
</div>
|
2023-04-23 17:24:19 +08:00
|
|
|
{{template "base/modal_actions_confirm" .}}
|
2019-11-30 08:40:22 -06:00
|
|
|
</div>
|
2023-04-23 18:21:21 +08:00
|
|
|
|
|
|
|
|
{{template "admin/layout_footer" .}}
|