Skip to content

Commit

Permalink
dashboard/app: fix coverage menu
Browse files Browse the repository at this point in the history
  • Loading branch information
tarasmadan committed Jul 17, 2024
1 parent 2a76be2 commit 5dec23d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 6 additions & 4 deletions dashboard/app/templates/templates.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ <h1><a href="/{{$.Namespace}}">syzbot</a></h1>
<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</>
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}}"
Expand All @@ -106,9 +106,11 @@ <h1><a href="/{{$.Namespace}}">syzbot</a></h1>
{{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>
<a href="/{{$.Namespace}}/graph/coverage_heatmap">Heatmap</a>
<div class="dropdown-content">
<a class="navigation_tab{{if eq .URLPath (printf "/%v/graph/coverage" $.Namespace)}}_selected{{end}}"
href="/{{$.Namespace}}/graph/coverage">Total</a>
<a class="navigation_tab{{if eq .URLPath (printf "/%v/graph/coverage_heatmap" $.Namespace)}}_selected{{end}}"
href="/{{$.Namespace}}/graph/coverage_heatmap">Heatmap</a>
</div>
</div>
{{end}}
Expand Down
3 changes: 2 additions & 1 deletion pkg/html/pages/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ aside {
/* Dropdown Content (Hidden by Default) */
.dropdown-content {
display: none;
flex-direction: column;
position: absolute;
background-color: #f1f1f1;
z-index: 1;
Expand All @@ -466,7 +467,7 @@ aside {
.dropdown-content a:hover {background-color: #ddd;}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {display: block;}
.dropdown:hover .dropdown-content {display: flex;}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {background-color: #ddd;}

0 comments on commit 5dec23d

Please sign in to comment.