commit | f984e1eaea94cfdbd6bc23ab438f02028800fb9c | [log] [tgz] |
---|---|---|
author | Tim Windelschmidt <tim@monogon.tech> | Wed Apr 19 23:12:38 2023 +0200 |
committer | Tim Windelschmidt <tim@monogon.tech> | Thu Apr 20 11:47:57 2023 +0000 |
tree | dc627288a4205590e3f441e9b0a4199f1d480834 | |
parent | 213d90c4f27478bcdac4a9429422cf496f989431 [diff] |
c/b/b/webug: add tag count table Change-Id: I9662f00629335a656c401f66c798575f7db57842 Reviewed-on: https://review.monogon.dev/c/monogon/+/1583 Tested-by: Jenkins CI Reviewed-by: Serge Bazanski <serge@monogon.tech>
diff --git a/cloud/bmaas/bmdb/webug/templates/machines.html b/cloud/bmaas/bmdb/webug/templates/machines.html index d8658a1..4650512 100644 --- a/cloud/bmaas/bmdb/webug/templates/machines.html +++ b/cloud/bmaas/bmdb/webug/templates/machines.html
@@ -31,6 +31,18 @@ </tr> {{ end -}} </table> +<table> + <tr> + {{ range $name, $count := .TagCount -}} + <th>{{ $name }}</th> + {{ end -}} + </tr> + <tr> + {{ range $name, $count := .TagCount -}} + <td>{{ $count }}</td> + {{ end -}} + </tr> +</table> <p class="small faint mono"> {{ .NMachines }} rows, rendered in {{ .RenderTime }}. Query: {{ .Query }} </p> \ No newline at end of file