From bc63aac79a4640f951b050c537ba040bb231449b Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Thu, 16 Feb 2023 18:37:12 +0100 Subject: dashboard: display the subsystem list Take the counts from the cache, include links to the filtered bug views. --- dashboard/app/handler.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dashboard/app/handler.go') diff --git a/dashboard/app/handler.go b/dashboard/app/handler.go index cb998a516..333d7847d 100644 --- a/dashboard/app/handler.go +++ b/dashboard/app/handler.go @@ -129,6 +129,7 @@ type uiHeader struct { Namespace string BugCounts *CachedBugStats Namespaces []uiNamespace + ShowSubsystems bool } type uiNamespace struct { @@ -203,6 +204,7 @@ func commonHeader(c context.Context, r *http.Request, w http.ResponseWriter, ns } if ns != adminPage { h.Namespace = ns + h.ShowSubsystems = getSubsystemService(c, ns) != nil cookie.Namespace = ns encodeCookie(w, cookie) cached, err := CacheGet(c, r, ns) -- cgit mrf-deployment