Leviathan/views/index/dashboard.twig

45 lines
893 B
Twig
Raw Permalink Normal View History

{% extends 'layouts/default.twig' %}
{% block title %}Dashboard{% endblock %}
{% block content %}
<div class="row">
2023-12-02 23:41:04 -05:00
<h2>Recently updated tests:</h2>
<table class="twelve columns">
<thead>
<tr>
<td>Title</td>
<td>Last updated</td>
</tr>
</thead>
<tbody>
2024-02-24 19:06:34 -05:00
{% for t in tests %}
<tr>
2024-02-24 19:06:34 -05:00
<td><a href="/test/{{ t.id }}">{{ t.getHardware().name }} {{ t.dateTag }}</a></td>
<td>{{ t.updatedAt | date('m/d/Y g:ia') }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<hr>
<div class="row">
<h2>Recently added results:</h2>
<table class="twelve columns">
<thead>
<tr>
<td>Benchmark</td>
<td>Hardware</td>
<td>Average/Score</td>
<td>Scoring type</td>
<td>Added on</td>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
{% endblock %}