diff options
| author | Zubin Mithra <zsm@chromium.org> | 2019-08-01 13:53:11 -0700 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-08-08 15:22:19 +0200 |
| commit | 1bd538f42c8ec8512d864f739dd98dce3d41256a (patch) | |
| tree | c67b4842e66c7020f1e977310279b53b77804c40 /dashboard/app/bug.html | |
| parent | 8f0516c5fa95aca72818a1dcca2659dbdc14c1b3 (diff) | |
dashboard/app: remove duplicate code inside bug.html template
* Introduce "bisect_results" inside templates.html to take in a uiJob
and shows its contents.
* Modify bug.html to use "bisect_results" to show BisectCause and
BisectFix uiJob.
Diffstat (limited to 'dashboard/app/bug.html')
| -rw-r--r-- | dashboard/app/bug.html | 71 |
1 files changed, 2 insertions, 69 deletions
diff --git a/dashboard/app/bug.html b/dashboard/app/bug.html index 2efb75a8c..829c0b172 100644 --- a/dashboard/app/bug.html +++ b/dashboard/app/bug.html @@ -25,75 +25,8 @@ Page with details about a single bug. {{end}} First crash: {{formatLateness $.Now $.Bug.FirstTime}}, last: {{formatLateness $.Now $.Bug.LastTime}}<br> - {{with $bisect := .BisectCause}}<br> - {{if $bisect.ErrorLink}} - <b>Bisection: {{link $bisect.ErrorLink "error"}} - ({{link $bisect.LogLink "bisect log"}})</b><br> - {{else if $bisect.Commit}}{{with $com := $bisect.Commit}} - <b>Bisection: introduced by - ({{link $bisect.LogLink "bisect log"}}):</b><br> - <br><span class="mono"> - commit {{$com.Hash}}<br> - Author: {{$com.Author}}<br> - Date: {{formatKernelTime $com.Date}}<br> - <br> - {{$com.Title}}<br> - </span><br> - {{end}}{{else if $bisect.Commits}}{{with $bisect.Commits}} - <b>Bisection: the first bad commit could be any of - ({{link $bisect.LogLink "bisect log"}}):</b><br> - <br><span class="mono"> - {{range $com := $bisect.Commits}} - {{formatTagHash $com.Hash}} {{$com.Title}}<br> - {{end}} - </span><br> - {{end}}{{else}} - <b>Bisection: the bug happens on the oldest tested release - ({{link $bisect.LogLink "bisect log"}})</b><br> - {{end}} - Tree: <span title="{{$bisect.Manager}}">{{$bisect.KernelAlias}}</span><br> - {{if $bisect.CrashLogLink}} - Crash: {{link $bisect.CrashReportLink $bisect.CrashTitle}} ({{link $bisect.CrashLogLink "log"}})<br> - {{end}} - Repro: {{optlink $bisect.Crash.ReproCLink "C"}} - {{optlink $bisect.Crash.ReproSyzLink "syz"}} - {{optlink $bisect.Crash.KernelConfigLink ".config"}}<br> - {{end}} - - {{with $bisect := .BisectFix}}<br> - {{if $bisect.ErrorLink}} - <b>Bisection: {{link $bisect.ErrorLink "error"}} - ({{link $bisect.LogLink "bisect log"}})</b><br> - {{else if $bisect.Commit}}{{with $com := $bisect.Commit}} - <b>Bisection: fixed by - ({{link $bisect.LogLink "bisect log"}}):</b><br> - <br><span class="mono"> - commit {{$com.Hash}}<br> - Author: {{$com.Author}}<br> - Date: {{formatKernelTime $com.Date}}<br> - <br> - {{$com.Title}}<br> - </span><br> - {{end}}{{else if $bisect.Commits}}{{with $bisect.Commits}} - <b>Bisection: the fix commit could be any of - ({{link $bisect.LogLink "bisect log"}}):</b><br> - <br><span class="mono"> - {{range $com := $bisect.Commits}} - {{formatTagHash $com.Hash}} {{$com.Title}}<br> - {{end}} - </span><br> - {{end}}{{else}} - <b>Bisection: the bug occurs on the newest tested release - ({{link $bisect.LogLink "bisect log"}})</b><br> - {{end}} - Tree: <span title="{{$bisect.Manager}}">{{$bisect.KernelAlias}}</span><br> - {{if $bisect.CrashLogLink}} - Crash: {{link $bisect.CrashReportLink $bisect.CrashTitle}} ({{link $bisect.CrashLogLink "log"}})<br> - {{end}} - Repro: {{optlink $bisect.Crash.ReproCLink "C"}} - {{optlink $bisect.Crash.ReproSyzLink "syz"}} - {{optlink $bisect.Crash.KernelConfigLink ".config"}}<br> - {{end}} + {{template "bisect_results" .BisectCause}} + {{template "bisect_results" .BisectFix}} {{template "bug_list" .DupOf}} {{template "bug_list" .Dups}} |
