2025-06-26 15:34:02 -04:00

45 lines
1.2 KiB
Twig

{% extends 'layout.twig' %}
{% block title %}Test: {{ test.name }}{% endblock %}
{% block content %}
<div class="row">
<div class="col-12">
<h1>{{ benchmark.name }}</h1>
<p><a href="{{ url_for('benchmark.edit', { benchmark_id: benchmark.id }) }}">Edit</a></p>
<p>{{ benchmark.description }}</p>
</div>
</div>
<hr>
<div class="row">
<div class="col-12">
<h3 class="mb-3">Tests using this benchmark:</h3>
{% if benchmark.tests | length > 0 %}
<table class="table table-hover table-responsive">
<thead class="table-light">
<tr>
<th>Test title</th>
<th>Benchmarks</th>
<th>Last updated</th>
</tr>
</thead>
<tbody>
{% for t in benchmark.tests %}
<tr>
<td><a href="{{ url_for('test.view', { test_id: t.id }) }}">{{ t.title }}</a></td>
<td>{{ t.benchmarks | length }}</td>
<td>{{ t.updated_at }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p>There are no tests associated with this benchmark.</p>
{% endif %}
</div>
</div>
{% endblock %}