diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2024-11-07 15:39:45 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2024-11-07 16:25:52 +0000 |
| commit | 8f815ccc244597135fc5b9f74aeb0e5d96ce8eb5 (patch) | |
| tree | 00b15567487f1985109f3be15929049defc7fefa /dashboard/app/templates/templates.html | |
| parent | 64907ecc42ea17acbd68ccdd4b32d560e0c673e0 (diff) | |
all: fix HTML file formatting
Fix inconsistent HTML file formatting with both tabs and spaces.
Diffstat (limited to 'dashboard/app/templates/templates.html')
| -rw-r--r-- | dashboard/app/templates/templates.html | 127 |
1 files changed, 60 insertions, 67 deletions
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 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 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 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 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 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 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 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 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> |
