aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/app/templates.html
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-05-09 18:25:02 +0200
committerAleksandr Nogikh <wp32pw@gmail.com>2023-05-10 09:02:53 +0200
commitdfd5a9acc134f1ea849a49efee7dd7f50c836e75 (patch)
treeac41d021e09d5b8ac2c70938d59432092415e798 /dashboard/app/templates.html
parent1964022bd4ae3c35688b98f6a4db45076c7d002c (diff)
dashboard: support filtering over multiple labels
For each label, allow only one value to be specified. At the same time, allow multiple different labels (subsystem, origin, prio, etc) be specified together.
Diffstat (limited to 'dashboard/app/templates.html')
-rw-r--r--dashboard/app/templates.html11
1 files changed, 6 insertions, 5 deletions
diff --git a/dashboard/app/templates.html b/dashboard/app/templates.html
index 044f0fd42..001eec25e 100644
--- a/dashboard/app/templates.html
+++ b/dashboard/app/templates.html
@@ -94,16 +94,17 @@ Use of this source code is governed by Apache 2 LICENSE that can be found in the
{{if .Filter.Any}}
<b>Applied filters: </b>
{{if .Filter.Manager}}
- Manager={{.Filter.Manager}} ({{link (call .DropURL "manager") "drop"}})
+ Manager={{.Filter.Manager}} ({{link (call .DropURL "manager" "") "drop"}})
{{end}}
{{if .Filter.OnlyManager}}
- Only Manager={{.Filter.OnlyManager}} ({{link (call .DropURL "only_manager") "drop"}})
+ Only Manager={{.Filter.OnlyManager}} ({{link (call .DropURL "only_manager" "") "drop"}})
{{end}}
{{if .Filter.NoSubsystem}}
- NoSubsystem={{.Filter.NoSubsystem}} ({{link (call .DropURL "no_subsystem") "drop"}})
+ NoSubsystem={{.Filter.NoSubsystem}} ({{link (call .DropURL "no_subsystem" "") "drop"}})
{{end}}
- {{if .Filter.Label}}
- Label={{.Filter.Label}} ({{link (call .DropURL "label") "drop"}})
+ {{$drop := .DropURL}}
+ {{range .Filter.Labels}}
+ Label={{.}} ({{link (call $drop "label" .) "drop"}})
{{end}}
<br>
{{end}}