From fa763482c3e2ef60aa7210e1bff6b206ef814229 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 5 Apr 2019 16:00:20 +0200 Subject: dashboard/app: add admin page Add /admin page and move logs, jobs, manager onto it. The main page is too overloaded and takes too long to load. We need to start splitting it. This is a first step. --- dashboard/app/admin.html | 80 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 dashboard/app/admin.html (limited to 'dashboard/app/admin.html') diff --git a/dashboard/app/admin.html b/dashboard/app/admin.html new file mode 100644 index 000000000..09fd67513 --- /dev/null +++ b/dashboard/app/admin.html @@ -0,0 +1,80 @@ +{{/* +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. +*/}} + + + + + {{template "head" .Header}} + syzbot + + + {{template "header" .Header}} + +
Error log:
+ + +

+ + {{template "manager_list" $.Managers}} + + + + + + + + + + + + + + {{range $job := $.Jobs}} + + + + + + + + + + + {{end}} +
Recent jobs:
BugCreatedDurationUserPatchRepoManagerResult
{{$job.BugTitle}}{{link $job.ExternalLink (formatTime $job.Created)}} + {{formatDuration $job.Duration}}{{if gt $job.Attempts 1}} ({{$job.Attempts}}){{end}} + + {{if eq $job.Type 0}} + {{$job.User}} + {{else if eq $job.Type 1}} + bisect + {{else if eq $job.Type 2}} + bisect fix + {{end}} + {{optlink $job.PatchLink "patch"}}{{$job.KernelAlias}}{{$job.Manager}} + {{if $job.ErrorLink}} + {{link $job.ErrorLink "error"}} + {{else if $job.LogLink}} + {{link $job.LogLink "log"}} + ({{if $job.Commit}}1{{else}}{{len $job.Commits}}{{end}}) + {{else if $job.CrashTitle}} + {{optlink $job.CrashReportLink "report"}} + {{optlink $job.CrashLogLink "log"}} + {{else if formatTime $job.Finished}} + OK + {{else if formatTime $job.Started}} + running + {{else}} + pending + {{end}} +
+

+ + -- cgit mrf-deployment