perf: add "all benchmarks" button
For golang/go#48803.
Change-Id: I4ec7b51918fc780729c218d8f25478e539700bc5
Reviewed-on: https://go-review.googlesource.com/c/build/+/413418
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
diff --git a/perf/app/dashboard/index.html b/perf/app/dashboard/index.html
index d83e081..c11f614 100644
--- a/perf/app/dashboard/index.html
+++ b/perf/app/dashboard/index.html
@@ -26,14 +26,19 @@
</nav>
</header>
-<form autocomplete="off" action="./">
<nav class="Dashboard-controls">
- <div class="Dashboard-search">
- <input id="benchmarkInput" type="text" name="benchmark" placeholder="Type benchmark name...">
- </div>
- <input type="submit">
+ <ul>
+ <li>
+ <form autocomplete="off" action="./">
+ <div class="Dashboard-search">
+ <input id="benchmarkInput" type="text" name="benchmark" placeholder="Type benchmark name...">
+ </div>
+ <input type="submit">
+ </form>
+ </li>
+ <li><a href="?benchmark=all">All benchmarks</a></li>
+ </ul>
</nav>
-</form>
<script>
</script>
diff --git a/perf/app/dashboard/static/style.css b/perf/app/dashboard/static/style.css
index 3da6995..935823d 100644
--- a/perf/app/dashboard/static/style.css
+++ b/perf/app/dashboard/static/style.css
@@ -57,25 +57,24 @@
}
header h1 {
display: inline;
- margin: 0;
+ margin-right: 20px;
padding-top: 5px;
}
header h1 a {
display: initial;
}
-header nav {
+nav {
display: inline-block;
- margin-left: 20px;
}
-header nav ul {
+nav ul {
list-style: none;
margin: 0;
padding: 0;
}
-header nav ul li {
+nav ul li {
display: inline-block;
}
-header nav a {
+nav a {
background: #375eab;
border: 1px solid #375eab;
border-radius: 5px;