{% extends 'layouts/default.twig' %}

{% block title %}Dashboard{% endblock %}

{% block content %}
<div class="row">
  <h2>Recently updated tests:</h2>

  <div class="col-12">
    <table class="table table-responsive table-hover">
      <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>
</div>
{% endblock %}
