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. --- pkg/html/pages/style.css | 4 ++-- pkg/subsystem/service.go | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'pkg') diff --git a/pkg/html/pages/style.css b/pkg/html/pages/style.css index aecde7554..ebeb7d012 100644 --- a/pkg/html/pages/style.css +++ b/pkg/html/pages/style.css @@ -140,8 +140,8 @@ table td, table th { } .list_table .maintainers { - width: 150pt; - max-width: 150pt; + max-width: 300pt; + white-space: normal; } .list_table .result { diff --git a/pkg/subsystem/service.go b/pkg/subsystem/service.go index b27200c30..d8c144cc4 100644 --- a/pkg/subsystem/service.go +++ b/pkg/subsystem/service.go @@ -45,3 +45,11 @@ func MakeService(list []*Subsystem) (*Service, error) { func (s *Service) ByName(name string) *Subsystem { return s.perName[name] } + +func (s *Service) List() []*Subsystem { + ret := []*Subsystem{} + for _, item := range s.perName { + ret = append(ret, item) + } + return ret +} -- cgit mrf-deployment