From dfd5a9acc134f1ea849a49efee7dd7f50c836e75 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Tue, 9 May 2023 18:25:02 +0200 Subject: 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. --- dashboard/app/templates.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'dashboard/app/templates.html') 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}} Applied filters: {{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}}
{{end}} -- cgit mrf-deployment