github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/dashboard/app/bug.html (about)

     1  {{/*
     2  Copyright 2017 syzkaller project authors. All rights reserved.
     3  Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
     4  
     5  Page with details about a single bug.
     6  */}}
     7  
     8  <!doctype html>
     9  <html>
    10  <head>
    11  	{{template "head" .Header}}
    12  	<title>{{.Bug.Title}}</title>
    13  </head>
    14  <body>
    15  	{{template "header" .Header}}
    16  
    17  	<b>{{.Bug.Title}}</b><br><br>
    18  	Status: {{if .Bug.ExternalLink}}<a href="{{.Bug.ExternalLink}}">{{.Bug.Status}}</a>{{else}}{{.Bug.Status}}{{end}}<br>
    19  	{{if .LabelGroups}}
    20  		{{range $group := .LabelGroups}}
    21  			{{$group.Name}}: {{range $group.Labels}}
    22  				<span class="bug-label">{{link .Link .Name}}</span>
    23  			{{- end}}
    24  		<br>
    25  		{{end}}
    26  	<a href="https://github.com/google/syzkaller/blob/master/docs/syzbot.md#labels">[Documentation on labels]</a><br>
    27  	{{- end}}
    28  	{{if .DebugSubsystems}}
    29  	{{link .DebugSubsystems "[Debug subsystem assignment]"}}<br>
    30  	{{- end}}
    31  	{{if .Bug.CreditEmail}}
    32  	Reported-by: {{.Bug.CreditEmail}}<br>
    33  	{{- end}}
    34  	{{if .Bug.Commits}}
    35  		<b>Fix commit:</b> {{template "fix_commits" .Bug.Commits}}<br>
    36  		{{if .Bug.ClosedTime.IsZero}}
    37  			<b>Patched on:</b> {{.Bug.PatchedOn}}, missing on: {{.Bug.MissingOn}}<br>
    38  		{{end}}
    39  	{{end}}
    40  	First crash: {{formatLateness $.Now $.Bug.FirstTime}}, last: {{formatLateness $.Now $.Bug.LastTime}}<br>
    41  	{{if .FixCandidate}}
    42  		<div class="fix-candidate-block">{{template "bisect_results" .FixCandidate}}</div>
    43  	{{end}}
    44  	<div>
    45  		{{if .BisectCause}}<div class="bug-bisection-info">{{template "bisect_results" .BisectCause}}</div>{{end}}
    46  		{{if .BisectFix}}<div class="bug-bisection-info">{{template "bisect_results" .BisectFix}}</div>{{end}}
    47  		<div class="bug-bisection-stop"></div>
    48  	</div>
    49  
    50  	{{range $item := .Sections}}
    51  	<div class="collapsible {{if $item.Show}}collapsible-show{{else}}collapsible-hide{{end}}">
    52  		<div class="head">
    53  			<span class="show-icon">&#9654;</span>
    54  			<span class="hide-icon">&#9660;</span>
    55  			<span>{{$item.Title}}</span>
    56  		</div>
    57  		<div class="content">
    58  			{{if eq $item.Type "bug_list"}}{{template "bug_list" $item.Value}}{{end}}
    59  			{{if eq $item.Type "job_list"}}{{template "job_list" $item.Value}}{{end}}
    60  			{{if eq $item.Type "discussion_list"}}{{template "discussion_list" $item.Value}}{{end}}
    61  			{{if eq $item.Type "test_results"}}{{template "test_results" $item.Value}}{{end}}
    62  			{{if eq $item.Type "repro_attempts"}}{{template "repro_attempts" $item.Value}}{{end}}
    63  		</div>
    64  	</div>
    65  	{{end}}
    66  
    67  	{{if .SampleReport}}
    68  	<br><b>Sample crash report:</b><br>
    69  	<div id="crash_div"><pre>{{.SampleReport}}</pre></div><br>
    70  	{{end}}
    71  
    72  	{{template "crash_list" .Crashes}}
    73  </body>
    74  </html>