33 lines
993 B
Twig
33 lines
993 B
Twig
{% extends 'layout.twig' %}
|
|
|
|
{% block title %}List of Benchmarks{% endblock %}
|
|
|
|
{% block content %}
|
|
<p><a href="{{ url_for('benchmark.add') }}">Create new Benchmark</a></p>
|
|
|
|
{% if benchmarks | length > 0 %}
|
|
<table class="u-full-width">
|
|
<thead>
|
|
<tr>
|
|
<th>Benchmark name</th>
|
|
<th>Description</th>
|
|
<th>Scoring type</th>
|
|
<th>Last updated</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for b in benchmarks %}
|
|
<tr>
|
|
<td><a href="{{ url_for('benchmark.view', { benchmark_id: b.id }) }}">{{ b.name }}</a></td>
|
|
<td>{{ b.description | slice(0, 100) }}</td>
|
|
<td>{{ b.scoring }}</td>
|
|
<td>{{ b.updated_at | date("F jS \\a\\t g:ia") }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
<p>There are no benchmarks in the database - perhaps you should <a href="{{ url_for('benchmark.add') }}">create one</a>?</p>
|
|
{% endif %}
|
|
{% endblock %}
|