Skip to content

Commit 644a6a7

Browse files
committed
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.
1 parent 0192132 commit 644a6a7

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

dashboard/app/templates/main.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@
1919
{{end}}
2020
{{template "bug_filter" $.BugFilter}}
2121
{{range $group := $.Groups}}
22-
{{template "bug_list" $group}}
22+
<details open>
23+
<summary class="bug_list_caption">
24+
{{$group.Caption}} ({{len $group.Bugs}})
25+
<a id="{{$group.Fragment}}" href="#{{$group.Fragment}}">🔗</a>
26+
</summary>
27+
{{template "bug_list" $group}}
28+
</details>
2329
{{end}}
2430
</body>
2531
</html>

dashboard/app/templates/templates.html

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -164,16 +164,6 @@ <h1><a href="/{{$.Namespace}}">syzbot</a></h1>
164164
{{if .}}
165165
{{if .Bugs}}
166166
<table class="list_table">
167-
{{if $.Caption}}
168-
{{if $.Fragment}}
169-
<caption id="{{$.Fragment}}"><a class="plain" href="#{{$.Fragment}}">
170-
{{else}}
171-
<caption>
172-
{{end}}
173-
{{$.Caption}} ({{len $.Bugs}}):
174-
{{if $.Fragment}}</a>{{end}}
175-
</caption>
176-
{{end}}
177167
<thead>
178168
<tr>
179169
{{if $.ShowNamespace}}

pkg/html/pages/style.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,13 @@ table td, table th {
6666
color: #375EAB;
6767
}
6868

69+
.bug_list_caption {
70+
font-weight: bold;
71+
font-size: large;
72+
color: #375EAB;
73+
cursor: pointer;
74+
}
75+
6976
.position_table {
7077
border: 0px;
7178
margin: 0px;

0 commit comments

Comments
 (0)