2022-11-25 19:39:51 -05:00
|
|
|
{% extends 'layout.twig' %}
|
|
|
|
|
|
|
|
{% block title %}List of Tests{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2022-11-25 19:46:31 -05:00
|
|
|
<p><a href="{{ url_for('test.add') }}">Create new test</a></p>
|
2022-11-25 19:39:51 -05:00
|
|
|
|
|
|
|
{% if tests | length > 0 %}
|
|
|
|
<table class="u-full-width">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2024-04-06 12:08:23 -04:00
|
|
|
<th>Test title</th>
|
2023-10-07 23:45:21 -04:00
|
|
|
<th>Hardware</th>
|
2024-06-03 08:32:37 -04:00
|
|
|
<th># of benchmarks</th>
|
2022-11-25 21:30:56 -05:00
|
|
|
<th>Last updated</th>
|
2022-11-25 19:39:51 -05:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for t in tests %}
|
|
|
|
<tr>
|
2024-04-06 12:08:23 -04:00
|
|
|
<td><a href="{{ url_for('test.view', { test_id: t.id }) }}">{{ t.title }}</a></td>
|
2023-10-07 23:45:21 -04:00
|
|
|
<td>{{ t.component.name }}</td>
|
2024-06-03 08:32:37 -04:00
|
|
|
<td>{{ t.benchmarks() | length }}</td>
|
2022-11-25 21:30:56 -05:00
|
|
|
<td>{{ t.updated_at | date("F jS \\a\\t g:ia") }}</td>
|
2022-11-25 19:39:51 -05:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{% else %}
|
|
|
|
<p>There are no tests in the database - perhaps you should <a href="{{ url_for('test.add') }}">create one</a>?</p>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|