Skip to content

Commit

Permalink
Add handling of projects without benchmarks on timeline view
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Marr <git@stefan-marr.de>
  • Loading branch information
smarr committed Mar 16, 2024
1 parent 38e4c8d commit 93929f3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/backend/timeline/timeline.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ <h2 class="display-5">{%= it.project.description %}</h2>


<div class="container-fluid"><div class="row flex-xl-nowrap">
{% if (it.benchmarks) { %}
<nav class="compare">
{% for (const b of it.benchmarks) {
for (const e of b.exec) { %}
Expand Down Expand Up @@ -75,5 +76,14 @@ <h4><a href="#b-{%= bb.benchName %}-{%= bb.runId %}">{%= bb.benchName %}<span cl
{% } } %}
</main>
</div></div> <!-- closing class="row flex-nowrap" and class="container-fluid" -->
{% } else { %}
<main role="main">
<div class="jumbotron">
<h1 class="display-4">No Data Available</h1>
<p class="lead">There are no benchmarks available for this project.</p>
</div>
</div>
</main>
{% } %}
</body>
</html>
2 changes: 2 additions & 0 deletions tests/data/expected-results/timeline/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ <h1 class="display-4">ReBench: Timeline Small Example Project</h1>
<div id="filter-groups"></div>
</div>
<div class="container-fluid"><div class="row flex-xl-nowrap">

<nav class="compare">

<nav><span>SOMns-graal</span>
Expand All @@ -71,5 +72,6 @@ <h4><a href="#b-NBody-1">NBody<span class="arguments"> </span></a></h4>

</main>
</div></div> <!-- closing class="row flex-nowrap" and class="container-fluid" -->

</body>
</html>

0 comments on commit 93929f3

Please sign in to comment.