Modified some views, routes and models to work with the new many-to-many for tests and benchmarks

This commit is contained in:
Gregory Ballantine
2024-06-03 08:32:37 -04:00
parent 15377da52d
commit f27490e192
6 changed files with 21 additions and 14 deletions

View File

@ -7,6 +7,11 @@
<div class="twelve columns">
<h1>{{ test.title }}</h1>
<p>{{ test.description }}</p>
<ul>
{% for b in test.benchmarks %}
<li>{{ b.name }}</li>
{% endfor %}
</ul>
</div>
</div>
@ -33,8 +38,8 @@
{% for r in test.results %}
<tr>
<td>{{ test.component().name }}</td>
<td>{{ test.benchmark().name }}</td>
<td>{{ test.scoring | capitalize }}</td>
<td>{{ r.benchmark().name }}</td>
<td>{{ r.benchmark().scoring | capitalize }}</td>
<td>{{ r.average }}</td>
<td>{{ r.minimum ? r.minimum : 'N/a' }}</td>
<td>{{ r.maximum ? r.maximum : 'N/a' }}</td>
@ -43,7 +48,7 @@
</tbody>
</table>
{% else %}
<p>There are no results associated with this.</p>
<p>There are no results associated with this test.</p>
{% endif %}
</div>
</div>