Leviathan/views/index/dashboard.twig

28 lines
626 B
Twig

{% extends 'layouts/default.twig' %}
{% block title %}Dashboard{% endblock %}
{% block content %}
<div class="row">
<h2>Recently updated tests:</h2>
<table class="twelve columns">
<thead>
<tr>
<td>Title</td>
<td>Last updated</td>
<td>Created at</td>
</tr>
</thead>
<tbody>
{% for t in tests %}
<tr>
<td><a href="/test/{{ t.id }}">{{ t.title }}</a></td>
<td>{{ t.updatedAt | date('m/d/Y g:ia') }}</td>
<td>{{ t.createdAt | date('m/d/Y g:ia') }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}