{% 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>

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