From 18af51b0a4566a2bc902f647e4a245f15bb09b3c Mon Sep 17 00:00:00 2001 From: Christoph Kluge Date: Wed, 25 Sep 2024 13:24:01 +0200 Subject: [PATCH] improve tag list template --- web/templates/monitoring/taglist.tmpl | 28 +++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/web/templates/monitoring/taglist.tmpl b/web/templates/monitoring/taglist.tmpl index 7831a64..7d762c3 100644 --- a/web/templates/monitoring/taglist.tmpl +++ b/web/templates/monitoring/taglist.tmpl @@ -3,19 +3,31 @@
{{ range $tagType, $tagList := .Infos.tagmap }} -
- {{ $tagType }} +
+ Tag Type: {{ $tagType }} + + {{len $tagList}} Tag{{if ne (len $tagList) 1}}s{{end}} +
{{ range $tagList }} {{if eq .scope "global"}} - - {{ .name }} {{ .count }} + + {{ .name }} + {{ .count }} Job{{if ne .count 1}}s{{end}} + Global + {{else if eq .scope "admin"}} - - {{ .name }} {{ .count }} + + {{ .name }} + {{ .count }} Job{{if ne .count 1}}s{{end}} + Admin + {{else}} - - {{ .name }} {{ .count }} + + {{ .name }} + {{ .count }} Job{{if ne .count 1}}s{{end}} + Private + {{end}} {{end}} {{end}}