Files
colossus/views/test/results.twig

45 lines
1.3 KiB
Twig

{% extends 'layout.twig' %}
{% block title %}Result Details for {{ test.title }}{% endblock %}
{% block content %}
<div class="row mb-3">
<div class="col-12">
<h1>Result Details for {{ test.title }}</h1>
<p><a href="{{ url_for('test.view', { test_id: test.id }) }}">Back</a></p>
</div>
</div>
<hr class="mb-4">
<div class="row mb-4">
{% for b in test.benchmarks %}
<div class="col-12 mb-3">
<h2><a href="{{ url_for('benchmark.view', { benchmark_id: b.id }) }}">{{ b.name }}</a></h2>
<table class="table table-hover table-responsive">
<thead>
<tr>
<th>Average</th>
<th>Minimum</th>
<th>Maximum</th>
<th>Edit</th>
<th>Delete</th>
</tr>
</thead>
<tbody>
{% for r in b.results().where('test_id', test.id).get() %}
<tr>
<td>{{ r.average }}</td>
<td>{{ r.minimum }}</td>
<td>{{ r.maximum }}</td>
<td><a href="#">Edit</a></td>
<td><a href="{{ url_for('api.resultDelete', { result_id: r.id }) }}">Delete</a></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endfor %}
</div>
{% endblock %}