Leviathan/views/benchmark/list.twig

32 lines
753 B
Twig
Raw Permalink Normal View History

2023-11-27 00:42:42 -05:00
{% extends 'layouts/default.twig' %}
{% block title %}List of Benchmarks{% endblock %}
{% block content %}
<div class="row">
<h2>Benchmarks</h2>
<a href="/benchmark/add">Add a benchmark</a>
<table class="twelve columns">
<thead>
<tr>
<td>Benchmark name</td>
<td>Scoring type</td>
<td>Created at</td>
<td>Last updated</td>
</tr>
</thead>
<tbody>
{% for b in benchmarks %}
<tr>
<td><a href="/benchmark/{{ b.id }}">{{ b.name }}</a></td>
<td>{{ b.scoring }}</td>
<td>{{ b.createdAt | date('m/d/Y g:ia') }}</td>
<td>{{ b.updatedAt | date('m/d/Y g:ia') }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}