Skip to content

Commit

Permalink
perf: link benchmark titles
Browse files Browse the repository at this point in the history
For golang/go#48803.

Change-Id: I678a2dc5e668179d0fbaf4401aa810ad930c7933
Reviewed-on: https://go-review.googlesource.com/c/build/+/413421
TryBot-Result: Gopher Robot <[email protected]>
Reviewed-by: Michael Knyszek <[email protected]>
Run-TryBot: Michael Pratt <[email protected]>
  • Loading branch information
prattmic committed Jun 21, 2022
1 parent 2ca28e2 commit d8fde76
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
6 changes: 5 additions & 1 deletion perf/app/dashboard/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,13 @@ <h2 class="Dashboard-title" id="loading">Loading...</h2>
if (bench.Name != prevName) {
prevName = bench.Name;

let link = document.createElement("a");
link.href = "?benchmark=" + bench.Name;
link.innerHTML = bench.Name;

let title = document.createElement("h2");
title.classList.add("Dashboard-title");
title.innerHTML = bench.Name;
title.appendChild(link);
dashboard.appendChild(title);

grid = document.createElement("grid");
Expand Down
9 changes: 0 additions & 9 deletions perf/app/dashboard/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,9 @@ h2 {

h1 > a,
h2 > a {
display: none;
text-decoration: none;
}

h1:hover > a,
h2:hover > a {
display: inline;
}

h1 > a:hover,
h2 > a:hover {
text-decoration: underline;
Expand All @@ -60,9 +54,6 @@ header h1 {
margin-right: 20px;
padding-top: 5px;
}
header h1 a {
display: initial;
}
nav {
display: inline-block;
}
Expand Down

0 comments on commit d8fde76

Please sign in to comment.