forked from Shiloh/githaven
90e0a402c1
As discussed on #19221 we should store the results of the last task message on the crontask and show them on the monitor page. Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
52 lines
1.7 KiB
Handlebars
52 lines
1.7 KiB
Handlebars
{{template "base/head" .}}
|
|
<div class="page-content admin monitor">
|
|
{{template "admin/navbar" .}}
|
|
<div class="ui container">
|
|
{{template "base/alert" .}}
|
|
{{template "admin/cron" .}}
|
|
<h4 class="ui top attached header">
|
|
{{.i18n.Tr "admin.monitor.queues"}}
|
|
</h4>
|
|
<div class="ui attached table segment">
|
|
<table class="ui very basic striped table">
|
|
<thead>
|
|
<tr>
|
|
<th>{{.i18n.Tr "admin.monitor.queue.name"}}</th>
|
|
<th>{{.i18n.Tr "admin.monitor.queue.type"}}</th>
|
|
<th>{{.i18n.Tr "admin.monitor.queue.exemplar"}}</th>
|
|
<th>{{.i18n.Tr "admin.monitor.queue.numberworkers"}}</th>
|
|
<th>{{.i18n.Tr "admin.monitor.queue.numberinqueue"}}</th>
|
|
<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>
|
|
<td>{{$sum := .NumberInQueue}}{{if lt $sum 0}}-{{else}}{{$sum}}{{end}}</td>
|
|
<td><a href="{{$.Link}}/queue/{{.QID}}" class="button">{{if lt $sum 0}}{{$.i18n.Tr "admin.monitor.queue.review"}}{{else}}{{$.i18n.Tr "admin.monitor.queue.review_add"}}{{end}}</a>
|
|
</tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
{{template "admin/process" .}}
|
|
</div>
|
|
</div>
|
|
<div class="ui small basic delete modal">
|
|
<div class="ui icon header">
|
|
{{svg "octicon-x" 16 "close inside"}}
|
|
{{.i18n.Tr "admin.monitor.process.cancel"}}
|
|
</div>
|
|
<div class="content">
|
|
<p>{{$.i18n.Tr "admin.monitor.process.cancel_notices" `<span class="name"></span>` | Safe}}</p>
|
|
<p>{{$.i18n.Tr "admin.monitor.process.cancel_desc"}}</p>
|
|
</div>
|
|
{{template "base/delete_modal_actions" .}}
|
|
</div>
|
|
{{template "base/footer" .}}
|