Added ability to load benchmark results when viewing a test
This commit is contained in:
@ -56,10 +56,11 @@
|
||||
<div class="row">
|
||||
<div class="twelve columns">
|
||||
<h3>Benchmarks</h3>
|
||||
<table class="u-full-width">
|
||||
<table id="results-table" data-test-id="{{ test.id }}" class="u-full-width">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Benchmark</td>
|
||||
<td>Scoring type</td>
|
||||
<td># Results</td>
|
||||
<td>Avg.</td>
|
||||
<td>Min.</td>
|
||||
@ -68,13 +69,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for b in test.getBenchmarks() %}
|
||||
<tr>
|
||||
<td>{{ b.name }}</td>
|
||||
<td>{{ test.getResults({where: {testId: test.id}})|length }}</td>
|
||||
<td>N/a</td>
|
||||
<td>N/a</td>
|
||||
<td>N/a</td>
|
||||
</tr>
|
||||
<tr data-benchmark-id="{{ b.id }}"></tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
@ -84,4 +79,6 @@
|
||||
|
||||
<p><a href="/test">Back</a></p>
|
||||
</div>
|
||||
|
||||
<script src="/js/test.js" type="text/javascript"></script>
|
||||
{% endblock %}
|
||||
|
Reference in New Issue
Block a user