aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-11-07 15:39:45 +0100
committerDmitry Vyukov <dvyukov@google.com>2024-11-07 16:25:52 +0000
commit8f815ccc244597135fc5b9f74aeb0e5d96ce8eb5 (patch)
tree00b15567487f1985109f3be15929049defc7fefa /dashboard
parent64907ecc42ea17acbd68ccdd4b32d560e0c673e0 (diff)
all: fix HTML file formatting
Fix inconsistent HTML file formatting with both tabs and spaces.
Diffstat (limited to 'dashboard')
-rw-r--r--dashboard/app/templates/backports.html8
-rw-r--r--dashboard/app/templates/custom_content.html8
-rw-r--r--dashboard/app/templates/graph_fuzzing.html2
-rw-r--r--dashboard/app/templates/main.html2
-rw-r--r--dashboard/app/templates/templates.html127
5 files changed, 70 insertions, 77 deletions
diff --git a/dashboard/app/templates/backports.html b/dashboard/app/templates/backports.html
index a0e53adb2..523f74e8c 100644
--- a/dashboard/app/templates/backports.html
+++ b/dashboard/app/templates/backports.html
@@ -13,13 +13,13 @@ Use of this source code is governed by Apache 2 LICENSE that can be found in the
{{template "header" .Header}}
{{$getName := .DisplayNamespace}}
{{range $group := .Groups}}
- <b>{{$group.From.URL}} {{$group.From.Branch}} β†’ {{$group.To.URL}} {{$group.To.Branch}}</b><br />
-
+ <b>{{$group.From.URL}} {{$group.From.Branch}} β†’ {{$group.To.URL}} {{$group.To.Branch}}</b><br />
+
<table class="list_table">
<tr>
<th>Commit</th>
{{range $ns := .Namespaces}}
- <th>{{call $getName $ns}}</th>
+ <th>{{call $getName $ns}}</th>
{{end}}
</tr>
{{range $backport := $group.List}}
@@ -36,7 +36,7 @@ Use of this source code is governed by Apache 2 LICENSE that can be found in the
{{link $info.Bug.Link $info.Bug.Title}}
{{end}}
</td>
- {{end}}
+ {{end}}
</tr>
{{end}}
</table>
diff --git a/dashboard/app/templates/custom_content.html b/dashboard/app/templates/custom_content.html
index 7e2c722c1..d5f8b2c2b 100644
--- a/dashboard/app/templates/custom_content.html
+++ b/dashboard/app/templates/custom_content.html
@@ -6,11 +6,11 @@ Use of this source code is governed by Apache 2 LICENSE that can be found in the
<!doctype html>
<html>
<head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
{{template "head" .Header}}
- <style>
- {{ .Style }}
- </style>
+ <style>
+ {{ .Style }}
+ </style>
<title>syzbot</title>
</head>
<body>
diff --git a/dashboard/app/templates/graph_fuzzing.html b/dashboard/app/templates/graph_fuzzing.html
index d7a22e6a6..6482f950c 100644
--- a/dashboard/app/templates/graph_fuzzing.html
+++ b/dashboard/app/templates/graph_fuzzing.html
@@ -47,7 +47,7 @@ Manager statistics graphs.
</head>
<body>
{{template "header" .Header}}
- <div class="page">
+ <div class="page">
<div id="graph_div" class="main-content"></div>
<aside>
<form>
diff --git a/dashboard/app/templates/main.html b/dashboard/app/templates/main.html
index e3cfce845..285070ba8 100644
--- a/dashboard/app/templates/main.html
+++ b/dashboard/app/templates/main.html
@@ -14,7 +14,7 @@ Main page.
<body>
{{template "header" .Header}}
{{if $.Decommissioned}}<h1>This kernel is DECOMMISSIONED</h1>{{end}}
- {{if or (not $.BugFilter.Filter.Any) ($.BugFilter.Filter.ManagerName)}}
+ {{if or (not $.BugFilter.Filter.Any) ($.BugFilter.Filter.ManagerName)}}
{{template "manager_list" $.Managers}}
{{end}}
{{template "bug_filter" $.BugFilter}}
diff --git a/dashboard/app/templates/templates.html b/dashboard/app/templates/templates.html
index 2ef542174..7ead75f58 100644
--- a/dashboard/app/templates/templates.html
+++ b/dashboard/app/templates/templates.html
@@ -57,77 +57,70 @@ Use of this source code is governed by Apache 2 LICENSE that can be found in the
</tr>
</table>
{{if not (eq .URLPath "/admin")}}
- <div class="navigation">
- <div class="navigation_tab{{if eq .URLPath (printf "/%v" $.Namespace)}}_selected{{end}}">
- <a href='/{{$.Namespace}}'>
- <span style="color:DeepPink;">🐞</span> Open [{{$.BugCounts.Open}}]</a>
- </div>
+ <div class="navigation">
+ <div class="navigation_tab{{if eq .URLPath (printf "/%v" $.Namespace)}}_selected{{end}}">
+ <a href='/{{$.Namespace}}'><span style="color:DeepPink;">🐞</span> Open [{{$.BugCounts.Open}}]</a>
+ </div>
- {{if .ShowSubsystems}}
- <div class="navigation_tab{{if eq .URLPath (printf "/%v/subsystems" $.Namespace)}}_selected{{end}}">
- <a href='/{{$.Namespace}}/subsystems'>
- <span style="color:DeepPink;">≑</span> Subsystems</a>
- </div>
- {{end}}
+ {{if .ShowSubsystems}}
+ <div class="navigation_tab{{if eq .URLPath (printf "/%v/subsystems" $.Namespace)}}_selected{{end}}">
+ <a href='/{{$.Namespace}}/subsystems'><span style="color:DeepPink;">≑</span> Subsystems</a>
+ </div>
+ {{end}}
- <div class="navigation_tab{{if eq .URLPath (printf "/%v/fixed" $.Namespace)}}_selected{{end}}">
- <a href='/{{$.Namespace}}/fixed'>
- <span style="color:ForestGreen;">🐞</span> Fixed [{{$.BugCounts.Fixed}}]</a>
- </div>
+ <div class="navigation_tab{{if eq .URLPath (printf "/%v/fixed" $.Namespace)}}_selected{{end}}">
+ <a href='/{{$.Namespace}}/fixed'><span style="color:ForestGreen;">🐞</span> Fixed [{{$.BugCounts.Fixed}}]</a>
+ </div>
- <div class="navigation_tab{{if eq .URLPath (printf "/%v/invalid" $.Namespace)}}_selected{{end}}" href='/{{$.Namespace}}/invalid'>
- <a href='/{{$.Namespace}}/invalid'>
- <span style="color:RoyalBlue;">🐞</span> Invalid [{{$.BugCounts.Invalid}}]</a>
- </div>
+ <div class="navigation_tab{{if eq .URLPath (printf "/%v/invalid" $.Namespace)}}_selected{{end}}" href='/{{$.Namespace}}/invalid'>
+ <a href='/{{$.Namespace}}/invalid'><span style="color:RoyalBlue;">🐞</span> Invalid [{{$.BugCounts.Invalid}}]</a>
+ </div>
- {{if gt .MissingBackports 0}}
- <div class="navigation_tab{{if eq .URLPath (printf "/%v/backports" $.Namespace)}}_selected{{end}}">
- <a href='/{{$.Namespace}}/backports'>
- <span style="color:ForestGreen;">⬇</span> Missing Backports [{{$.MissingBackports}}]</a>
- </div>
- {{end}}
+ {{if gt .MissingBackports 0}}
+ <div class="navigation_tab{{if eq .URLPath (printf "/%v/backports" $.Namespace)}}_selected{{end}}">
+ <a href='/{{$.Namespace}}/backports'><span style="color:ForestGreen;">⬇</span> Missing Backports [{{$.MissingBackports}}]</a>
+ </div>
+ {{end}}
- <div class="navigation_tab{{if eq .URLPath (printf "/%v/graph/crashes" $.Namespace)}}_selected{{end}}">
- <a href='/{{$.Namespace}}/graph/crashes'>
- <span style="color:ForestGreen;">≑</span> Crashes</a>
- </div>
+ <div class="navigation_tab{{if eq .URLPath (printf "/%v/graph/crashes" $.Namespace)}}_selected{{end}}">
+ <a href='/{{$.Namespace}}/graph/crashes'><span style="color:ForestGreen;">≑</span> Crashes</a>
+ </div>
- <div class="dropdown navigation_tab">
- <button class="dropbtn"><span style="color:DarkOrange;">πŸ“ˆ</span>Graphs</button>
- <div class="dropdown-content">
- <a class="navigation_tab{{if eq .URLPath (printf "/%v/graph/bugs" $.Namespace)}}_selected{{end}}"
- href='/{{$.Namespace}}/graph/bugs'>Kernel&nbsp;Health</a>
- <a class="navigation_tab{{if eq .URLPath (printf "/%v/graph/found-bugs" $.Namespace)}}_selected{{end}}"
- href='/{{$.Namespace}}/graph/found-bugs'>Bugs/Month</a>
- <a class="navigation_tab{{if eq .URLPath (printf "/%v/graph/lifetimes" $.Namespace)}}_selected{{end}}"
- href='/{{$.Namespace}}/graph/lifetimes'>Bug&nbsp;Lifetimes</a>
- <a class="navigation_tab{{if eq .URLPath (printf "/%v/graph/fuzzing" $.Namespace)}}_selected{{end}}"
- href='/{{$.Namespace}}/graph/fuzzing'>Fuzzing</a>
- </div>
- </div>
+ <div class="dropdown navigation_tab">
+ <button class="dropbtn"><span style="color:DarkOrange;">πŸ“ˆ</span>Graphs</button>
+ <div class="dropdown-content">
+ <a class="navigation_tab{{if eq .URLPath (printf "/%v/graph/bugs" $.Namespace)}}_selected{{end}}"
+ href='/{{$.Namespace}}/graph/bugs'>Kernel&nbsp;Health</a>
+ <a class="navigation_tab{{if eq .URLPath (printf "/%v/graph/found-bugs" $.Namespace)}}_selected{{end}}"
+ href='/{{$.Namespace}}/graph/found-bugs'>Bugs/Month</a>
+ <a class="navigation_tab{{if eq .URLPath (printf "/%v/graph/lifetimes" $.Namespace)}}_selected{{end}}"
+ href='/{{$.Namespace}}/graph/lifetimes'>Bug&nbsp;Lifetimes</a>
+ <a class="navigation_tab{{if eq .URLPath (printf "/%v/graph/fuzzing" $.Namespace)}}_selected{{end}}"
+ href='/{{$.Namespace}}/graph/fuzzing'>Fuzzing</a>
+ </div>
+ </div>
- {{if .ShowCoverageMenu}}
- <div class="dropdown navigation_tab">
- <button class="dropbtn"><span style="color:DarkOrange;">πŸ“ˆ</span>Coverage</button>
- <div class="dropdown-content">
- <a class="navigation_tab{{if eq .URLPath (printf "/%v/graph/coverage" $.Namespace)}}_selected{{end}}"
- href="/{{$.Namespace}}/graph/coverage?period=quarter">Total</a>
- <a class="navigation_tab{{if eq .URLPath (printf "/%v/graph/coverage_heatmap" $.Namespace)}}_selected{{end}}"
- href="/{{$.Namespace}}/graph/coverage_heatmap?period=month">Repo&nbsp;Heatmap</a>
- {{ if .ShowSubsystems }}
- <a class="navigation_tab{{if eq .URLPath (printf "/%v/graph/coverage_subsystems_heatmap" $.Namespace)}}_selected{{end}}"
- href="/{{$.Namespace}}/graph/coverage_subsystems_heatmap?period=month">Subsystems&nbsp;Heatmap</a>
- {{ end }}
- </div>
- </div>
- {{end}}
- {{if .ContactEmail}}
- <div class="navigation_tab navigation_right">
- <a href='mailto:{{.ContactEmail}}'>
- <span style="color:ForestGreen;">πŸ’¬</span> Send us feedback</a>
- </div>
- {{end}}
- </div>
+ {{if .ShowCoverageMenu}}
+ <div class="dropdown navigation_tab">
+ <button class="dropbtn"><span style="color:DarkOrange;">πŸ“ˆ</span>Coverage</button>
+ <div class="dropdown-content">
+ <a class="navigation_tab{{if eq .URLPath (printf "/%v/graph/coverage" $.Namespace)}}_selected{{end}}"
+ href="/{{$.Namespace}}/graph/coverage?period=quarter">Total</a>
+ <a class="navigation_tab{{if eq .URLPath (printf "/%v/graph/coverage_heatmap" $.Namespace)}}_selected{{end}}"
+ href="/{{$.Namespace}}/graph/coverage_heatmap?period=month">Repo&nbsp;Heatmap</a>
+ {{if .ShowSubsystems}}
+ <a class="navigation_tab{{if eq .URLPath (printf "/%v/graph/coverage_subsystems_heatmap" $.Namespace)}}_selected{{end}}"
+ href="/{{$.Namespace}}/graph/coverage_subsystems_heatmap?period=month">Subsystems&nbsp;Heatmap</a>
+ {{end}}
+ </div>
+ </div>
+ {{end}}
+ {{if .ContactEmail}}
+ <div class="navigation_tab navigation_right">
+ <a href='mailto:{{.ContactEmail}}'><span style="color:ForestGreen;">πŸ’¬</span> Send us feedback</a>
+ </div>
+ {{end}}
+ </div>
{{end}}
</header>
<br>
@@ -368,7 +361,7 @@ Use of this source code is governed by Apache 2 LICENSE that can be found in the
{{if .FixCandidate}}
<b>Fix candidate bisection: failed</b>
{{else}}
- <b>Fix bisection: failed</b>
+ <b>Fix bisection: failed</b>
{{end}}
{{end}}
<b>({{link .ErrorLink "error log"}}{{if .LogLink}}, {{link .LogLink "bisect log"}}{{end}})</b><br>
@@ -379,7 +372,7 @@ Use of this source code is governed by Apache 2 LICENSE that can be found in the
{{if .FixCandidate}}
<b>Fix commit to backport</b>
{{else}}
- <b>Fix bisection: fixed by</b>
+ <b>Fix bisection: fixed by</b>
{{end}}
{{end}}
<b>({{link .LogLink "bisect log"}})</b> <span class="bad">{{print .Flags}}</span>:<br>
@@ -649,7 +642,7 @@ Use of this source code is governed by Apache 2 LICENSE that can be found in the
</td>
{{else}}
<td class="status-ok">Didn't crash</td>
- {{end}}
+ {{end}}
</tr>
{{end}}
</tbody>