diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2023-02-16 18:37:12 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2023-02-17 12:00:36 +0100 |
| commit | bc63aac79a4640f951b050c537ba040bb231449b (patch) | |
| tree | 45c308692b866132b65cb219c16742657808b868 /dashboard/app/handler.go | |
| parent | 5fe5301b69de36dc64cf350d6924cb3e7b54b9ba (diff) | |
dashboard: display the subsystem list
Take the counts from the cache, include links to the filtered bug views.
Diffstat (limited to 'dashboard/app/handler.go')
| -rw-r--r-- | dashboard/app/handler.go | 2 |
1 files changed, 2 insertions, 0 deletions
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) |
