2023-10-07 13:45:11 -04:00
|
|
|
{% extends 'layout.twig' %}
|
|
|
|
|
|
|
|
{% block title %}Component: {{ component.name }}{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="row">
|
|
|
|
<div class="twelve columns">
|
|
|
|
<h1>{{ component.name }}</h1>
|
|
|
|
<p>{{ component.type }}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="twelve columns">
|
|
|
|
<h3>Test results:</h3>
|
|
|
|
<p><a href="{{ url_for('result.add') }}">Add new result</a></p>
|
|
|
|
|
|
|
|
{% if test.results | length > 0 %}
|
|
|
|
<table class="u-full-width">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Component</th>
|
|
|
|
<th>Benchmark</th>
|
|
|
|
<th>Scoring</th>
|
|
|
|
<th>Avg.</th>
|
|
|
|
<th>Min.</th>
|
|
|
|
<th>Max.</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for r in test.results %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ r.component }}</td>
|
|
|
|
<td>{{ r.benchmark }}</td>
|
|
|
|
<td>{{ r.type | capitalize }}</td>
|
|
|
|
<td>{{ r.average }}</td>
|
|
|
|
<td>{{ r.minimum ? r.minimum : 'N/a' }}</td>
|
|
|
|
<td>{{ r.maximum ? r.maximum : 'N/a' }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{% else %}
|
|
|
|
<p>There are no results associated with this.</p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|