summaryrefslogtreecommitdiffstats
path: root/templates/admin/monitor.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/admin/monitor.tmpl')
-rw-r--r--templates/admin/monitor.tmpl28
1 files changed, 28 insertions, 0 deletions
diff --git a/templates/admin/monitor.tmpl b/templates/admin/monitor.tmpl
index 38402fece2..0f9c2150b6 100644
--- a/templates/admin/monitor.tmpl
+++ b/templates/admin/monitor.tmpl
@@ -32,6 +32,34 @@
</div>
<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></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><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>
+
+ <h4 class="ui top attached header">
{{.i18n.Tr "admin.monitor.process"}}
</h4>
<div class="ui attached table segment">