diff options
| author | Taras Madan <tarasmadan@google.com> | 2024-07-16 10:56:55 +0200 |
|---|---|---|
| committer | Taras Madan <tarasmadan@google.com> | 2024-07-16 15:11:04 +0000 |
| commit | 65bedc1660e82c1da64f7be7e8212a0cc4aa531a (patch) | |
| tree | 98b75e65e3912109d3bb69f35704834e9da502e6 /dashboard | |
| parent | 74c18f4671cb92f65ed24cac0427b7d83337257e (diff) | |
dashboard/app: coverage dropdown menu
Diffstat (limited to 'dashboard')
| -rw-r--r-- | dashboard/app/templates/templates.html | 109 |
1 files changed, 69 insertions, 40 deletions
diff --git a/dashboard/app/templates/templates.html b/dashboard/app/templates/templates.html index 5e0c49dd1..02a8ed6f3 100644 --- a/dashboard/app/templates/templates.html +++ b/dashboard/app/templates/templates.html @@ -57,46 +57,75 @@ Use of this source code is governed by Apache 2 LICENSE that can be found in the </tr> </table> {{if not (eq .URLPath "/admin")}} - <table class="position_table"> - <tr> - <td class="navigation"> - <a class="navigation_tab{{if eq .URLPath (printf "/%v" $.Namespace)}}_selected{{end}}" href='/{{$.Namespace}}'> - <span style="color:DeepPink;">π</span> Open [{{$.BugCounts.Open}}]</a> - {{if .ShowSubsystems}} - <a class="navigation_tab{{if eq .URLPath (printf "/%v/subsystems" $.Namespace)}}_selected{{end}}" href='/{{$.Namespace}}/subsystems'> - <span style="color:DeepPink;">β‘</span> Subsystems</a> - {{end}} - <a class="navigation_tab{{if eq .URLPath (printf "/%v/fixed" $.Namespace)}}_selected{{end}}" href='/{{$.Namespace}}/fixed'> - <span style="color:ForestGreen;">π</span> Fixed [{{$.BugCounts.Fixed}}]</a> - <a class="navigation_tab{{if eq .URLPath (printf "/%v/invalid" $.Namespace)}}_selected{{end}}" href='/{{$.Namespace}}/invalid'> - <span style="color:RoyalBlue;">π</span> Invalid [{{$.BugCounts.Invalid}}]</a> - {{if gt .MissingBackports 0}} - <a class="navigation_tab{{if eq .URLPath (printf "/%v/backports" $.Namespace)}}_selected{{end}}" href='/{{$.Namespace}}/backports'> - <span style="color:ForestGreen;">β¬</span> Missing Backports [{{$.MissingBackports}}]</a> - {{end}} - <a class="navigation_tab{{if eq .URLPath (printf "/%v/graph/bugs" $.Namespace)}}_selected{{end}}" href='/{{$.Namespace}}/graph/bugs'> - <span style="color:DarkOrange;">π</span> Kernel Health</a> - <a class="navigation_tab{{if eq .URLPath (printf "/%v/graph/found-bugs" $.Namespace)}}_selected{{end}}" href='/{{$.Namespace}}/graph/found-bugs'> - <span style="color:DarkOrange;">π</span> Bugs/Month</a> - <a class="navigation_tab{{if eq .URLPath (printf "/%v/graph/lifetimes" $.Namespace)}}_selected{{end}}" href='/{{$.Namespace}}/graph/lifetimes'> - <span style="color:DarkOrange;">π</span> Bug Lifetimes</a> - <a class="navigation_tab{{if eq .URLPath (printf "/%v/graph/fuzzing" $.Namespace)}}_selected{{end}}" href='/{{$.Namespace}}/graph/fuzzing'> - <span style="color:DarkOrange;">π</span> Fuzzing</a> - <a class="navigation_tab{{if eq .URLPath (printf "/%v/graph/crashes" $.Namespace)}}_selected{{end}}" href='/{{$.Namespace}}/graph/crashes'> - <span style="color:DarkOrange;">π</span> Crashes</a> - {{if .ShowCoverageMenu}} - <a class="navigation_tab{{if eq .URLPath (printf "/%v/graph/coverage" $.Namespace)}}_selected{{end}}" href='/{{$.Namespace}}/graph/coverage'> - <span style="color:DarkOrange;">π</span> Coverage</a> - {{end}} - </td> - {{if .ContactEmail}} - <td class="navigation-right"> - <a class="navigation_tab" href='mailto:{{.ContactEmail}}'> - <span style="color:ForestGreen;">π¬</span> Send us feedback</a> - </td> - {{end}} - </tr> - </table> + <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}} + + <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> + + {{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/bugs" $.Namespace)}}_selected{{end}}"> + <a href='/{{$.Namespace}}/graph/bugs'> + <span style="color:DarkOrange;">π</span> Kernel Health</a> + </div> + + <div class="navigation_tab{{if eq .URLPath (printf "/%v/graph/found-bugs" $.Namespace)}}_selected{{end}}"> + <a href='/{{$.Namespace}}/graph/found-bugs'> + <span style="color:DarkOrange;">π</span> Bugs/Month</a> + </div> + + <div class="navigation_tab{{if eq .URLPath (printf "/%v/graph/lifetimes" $.Namespace)}}_selected{{end}}"> + <a href='/{{$.Namespace}}/graph/lifetimes'> + <span style="color:DarkOrange;">π</span> Bug Lifetimes</a> + </div> + + <div class="navigation_tab{{if eq .URLPath (printf "/%v/graph/fuzzing" $.Namespace)}}_selected{{end}}"> + <a href='/{{$.Namespace}}/graph/fuzzing'> + <span style="color:DarkOrange;">π</span> Fuzzing</a> + </div> + + <div class="navigation_tab{{if eq .URLPath (printf "/%v/graph/crashes" $.Namespace)}}_selected{{end}}"> + <a href='/{{$.Namespace}}/graph/crashes'> + <span style="color:DarkOrange;">π</span> Crashes</a> + </div> + {{if .ShowCoverageMenu}} + <div class="dropdown navigation_tab"> + <button class="dropbtn"><span style="color:DarkOrange;">π</span>Coverage</button> + <div class="dropdown-content navigation_tab{{if eq .URLPath (printf "/%v/graph/coverage" $.Namespace)}}_selected{{end}}"> + <a href="/{{$.Namespace}}/graph/coverage">Total</a> + </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> |
