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 /pkg | |
| parent | 5fe5301b69de36dc64cf350d6924cb3e7b54b9ba (diff) | |
dashboard: display the subsystem list
Take the counts from the cache, include links to the filtered bug views.
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/html/pages/style.css | 4 | ||||
| -rw-r--r-- | pkg/subsystem/service.go | 8 |
2 files changed, 10 insertions, 2 deletions
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 +} |
