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.tmpl14
1 files changed, 6 insertions, 8 deletions
diff --git a/templates/admin/monitor.tmpl b/templates/admin/monitor.tmpl
index 4d66d3bfbb..4b9e51503c 100644
--- a/templates/admin/monitor.tmpl
+++ b/templates/admin/monitor.tmpl
@@ -1,8 +1,5 @@
-{{template "base/head" .}}
-<div role="main" aria-label="{{.Title}}" class="page-content admin monitor">
- {{template "admin/navbar" .}}
- <div class="ui container">
- {{template "base/alert" .}}
+{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin monitor")}}
+ <div class="admin-setting-content">
{{template "admin/cron" .}}
<h4 class="ui top attached header">
{{.locale.Tr "admin.monitor.queues"}}
@@ -26,7 +23,7 @@
<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>{{$sum = .NumberInQueue}}{{if lt $sum 0}}-{{else}}{{$sum}}{{end}}</td>
<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>
</tr>
{{end}}
@@ -36,7 +33,7 @@
{{template "admin/process" .}}
</div>
-</div>
+
<div class="ui gitea-confirm-modal delete modal">
<div class="header">
{{.locale.Tr "admin.monitor.process.cancel"}}
@@ -47,4 +44,5 @@
</div>
{{template "base/modal_actions_confirm" .}}
</div>
-{{template "base/footer" .}}
+
+{{template "admin/layout_footer" .}}