aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/app/templates/admin.html
blob: 7bf3f2fea305a22eb63992ade573ba9c496fecea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{{/*
Copyright 2019 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.

Main page.
*/}}

<!doctype html>
<html>
<head>
	{{template "head" .Header}}
	<title>syzbot</title>
</head>
<body>
	{{template "header" .Header}}
	{{if $.Stopped}}
		<div class="emergency-stopped">Syzbot is in the emergency stop state</div>
	{{else}}
		<div class="emergency-stop">Syzbot is reporting too many bugs? {{link $.StopLink "Emergency stop"}} [click {{$.MoreStopClicks}} more times]<br />
		In this mode, syzbot will stop all reporting and won't record any new findings.</div>
	{{end}}

	<a class="plain" href="#log"><div id="log"><b>Error log:</b></div></a>
	<textarea id="log_textarea" readonly rows="20" wrap=off>{{printf "%s" .Log}}</textarea>
	<script>
		var textarea = document.getElementById("log_textarea");
		textarea.scrollTop = textarea.scrollHeight;
	</script>
	<br><br>
	{{with $.MemcacheStats}}
	<table class="list_table">
		<caption><a href="https://pkg.go.dev/google.golang.org/appengine/memcache?tab=doc#Item" target="_blank">Memcache stats:</a></caption>
		<tr>
			<th>Hits</th>
			<th>Misses</th>
			<th>ByteHits</th>
			<th>Items</th>
			<th>Bytes</th>
			<th>Oldest</th>
			<th></th>
		</tr>
		<tr>
			<td class="stat">{{.Hits}}</td>
			<td class="stat">{{.Misses}}</td>
			<td class="stat">{{.ByteHits}}</td>
			<td class="stat">{{.Items}}</td>
			<td class="stat">{{.Bytes}}</td>
			<td class="stat">{{.Oldest}}</td>
			<td><a href="?action=memcache_flush">flush</a></td>
		</tr>
	</table>
	{{end}}

	{{template "manager_list" $.Managers}}
	&nbsp;&nbsp;
	{{if $.FixBisectionsLink}}<a href="{{$.FixBisectionsLink}}">[Fix Bisections]</a>{{end}}
	{{if $.CauseBisectionsLink}}<a href="{{$.CauseBisectionsLink}}">[Cause Bisections]</a>{{end}}
	{{if $.JobOverviewLink}}<a href="{{$.JobOverviewLink}}">[Jobs Overview]</a>{{end}}
	{{template "job_list" $.RunningJobs}}
	{{template "job_list" $.PendingJobs}}
	{{template "job_list" $.RecentJobs}}
	{{template "job_list" $.TypeJobs}}
</body>
</html>