diff options
author | zeripath <art27@cantab.net> | 2022-02-12 05:31:26 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-12 13:31:26 +0800 |
commit | 4e57bd1d307d20341e9ae5cdb6aeb7913bd1f59d (patch) | |
tree | 96563a9a4344cfa25902abcfd723fe6fb7b9644c /templates/admin/monitor.tmpl | |
parent | 9444135ff5fe5e6929fc945ad0f40d77ca17c340 (diff) | |
download | gitea-4e57bd1d307d20341e9ae5cdb6aeb7913bd1f59d.tar.gz gitea-4e57bd1d307d20341e9ae5cdb6aeb7913bd1f59d.zip |
Add number in queue status to monitor page (#18712)
Add number in queue status to the monitor page so that administrators can
assess how much work is left to be done in the queues.
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'templates/admin/monitor.tmpl')
-rw-r--r-- | templates/admin/monitor.tmpl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/admin/monitor.tmpl b/templates/admin/monitor.tmpl index 8a90f9b647..a35b587bd5 100644 --- a/templates/admin/monitor.tmpl +++ b/templates/admin/monitor.tmpl @@ -48,6 +48,7 @@ <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> @@ -58,6 +59,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><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}} |