diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2026-01-13 10:38:21 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2026-01-13 15:12:27 +0000 |
| commit | 644a6a79695f8fdc1897dce1d29a15f51fbf2b7f (patch) | |
| tree | 49e1c363af37cc2399f7b2a7fb6789fd4f5da2cd /dashboard | |
| parent | 019213235f656dc561a7a7795e84a3016a67417b (diff) | |
dashboard/app: make bug lists collapsible
The bug lists on the main page are extremely long,
it's very hard to navigate between them.
Make bug lists collapsible.
Diffstat (limited to 'dashboard')
| -rw-r--r-- | dashboard/app/templates/main.html | 8 | ||||
| -rw-r--r-- | dashboard/app/templates/templates.html | 10 |
2 files changed, 7 insertions, 11 deletions
diff --git a/dashboard/app/templates/main.html b/dashboard/app/templates/main.html index 285070ba8..5425a47a4 100644 --- a/dashboard/app/templates/main.html +++ b/dashboard/app/templates/main.html @@ -19,7 +19,13 @@ Main page. {{end}} {{template "bug_filter" $.BugFilter}} {{range $group := $.Groups}} - {{template "bug_list" $group}} + <details open> + <summary class="bug_list_caption"> + {{$group.Caption}} ({{len $group.Bugs}}) + <a id="{{$group.Fragment}}" href="#{{$group.Fragment}}">🔗</a> + </summary> + {{template "bug_list" $group}} + </details> {{end}} </body> </html> diff --git a/dashboard/app/templates/templates.html b/dashboard/app/templates/templates.html index e469c18b3..a50197664 100644 --- a/dashboard/app/templates/templates.html +++ b/dashboard/app/templates/templates.html @@ -164,16 +164,6 @@ Use of this source code is governed by Apache 2 LICENSE that can be found in the {{if .}} {{if .Bugs}} <table class="list_table"> - {{if $.Caption}} - {{if $.Fragment}} - <caption id="{{$.Fragment}}"><a class="plain" href="#{{$.Fragment}}"> - {{else}} - <caption> - {{end}} - {{$.Caption}} ({{len $.Bugs}}): - {{if $.Fragment}}</a>{{end}} - </caption> - {{end}} <thead> <tr> {{if $.ShowNamespace}} |
