aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/app/templates.html
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-12-04 09:00:28 +0100
committerDmitry Vyukov <dvyukov@google.com>2017-12-04 09:00:28 +0100
commit96ca35f4c7ac6fecc3f129eb340cfd29f18cfdf1 (patch)
treef4c830e9674623545f6da3401e47222a34677335 /dashboard/app/templates.html
parent48359b97770f794600de4b58aab8aa069ee993db (diff)
dashboard/app: show info about duplicates and similar bugs
Show info about duplicates and similar bugs in other kernels on the bug page.
Diffstat (limited to 'dashboard/app/templates.html')
-rw-r--r--dashboard/app/templates.html36
1 files changed, 36 insertions, 0 deletions
diff --git a/dashboard/app/templates.html b/dashboard/app/templates.html
new file mode 100644
index 000000000..6fe5e011a
--- /dev/null
+++ b/dashboard/app/templates.html
@@ -0,0 +1,36 @@
+{{/*
+Copyright 2017 syzkaller project authors. All rights reserved.
+Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
+*/}}
+
+{{/* List of bugs, invoked with *uiBugGroup */}}
+{{define "bug_list"}}
+{{if .}}
+{{if .Bugs}}
+<table class="list_table">
+ <caption>{{$.Caption}}:</caption>
+ <tr>
+ {{if $.ShowNamespace}}<th>Kernel</th>{{end}}
+ <th>Title</th>
+ <th>Count</th>
+ <th>Repro</th>
+ <th>Last</th>
+ <th>Patched</th>
+ <th>Status</th>
+ </tr>
+ {{range $b := .Bugs}}
+ <tr>
+ {{if $.ShowNamespace}}<td>{{$b.Namespace}}</td>{{end}}
+ <td class="title"><a href="{{$b.Link}}">{{$b.Title}}</a></td>
+ <td class="stat {{if $b.NumCrashesBad}}bad{{end}}">{{$b.NumCrashes}}</td>
+ <td class="stat">{{formatReproLevel $b.ReproLevel}}</td>
+ <td class="stat">{{formatLateness $.Now $b.LastTime}}</td>
+ <td class="patched" title="{{$b.Commits}}">{{if $b.Commits}}{{len $b.PatchedOn}}/{{len $b.MissingOn}}{{end}}</td>
+ <td class="status">{{if $b.Link}}<a href="{{$b.ExternalLink}}">{{$b.Status}}</a>{{else}}{{$b.Status}}{{end}}</td>
+ </tr>
+ {{end}}
+</table>
+<br>
+{{end}}
+{{end}}
+{{end}}