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 9ce9b70
Showing 1 changed file with 10 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>

0 comments on commit 9ce9b70

Please sign in to comment.