33 lines
946 B
Twig
33 lines
946 B
Twig
{% extends 'layout.twig' %}
|
|
|
|
{% block title %}List of Tests{% endblock %}
|
|
|
|
{% block content %}
|
|
<p><a href="{{ url_for('test.add') }}">Create new test</a></p>
|
|
|
|
{% if tests | length > 0 %}
|
|
<table class="u-full-width">
|
|
<thead>
|
|
<tr>
|
|
<th>Test title</th>
|
|
<th>Hardware</th>
|
|
<th># of benchmarks</th>
|
|
<th>Last updated</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for t in tests %}
|
|
<tr>
|
|
<td><a href="{{ url_for('test.view', { test_id: t.id }) }}">{{ t.title }}</a></td>
|
|
<td>{{ t.component.name }}</td>
|
|
<td>{{ t.benchmarks() | length }}</td>
|
|
<td>{{ t.updated_at | date("F jS \\a\\t g:ia") }}</td>
|
|
</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 %}
|