<div class="row">
  <% if tests.length > 0 %>
    <div class="12-col mb-3">
      <h2>Latest benchmark results:</h2>
    </div>

    <div class="12-col">
      <table class="table table-hover table-responsive">
        <thead class="table-light">
          <tr>
            <th data-sort="name">Test name</th>
            <th data-sort="benchmark-count"># Benchmarks</th>
            <th data-sort="updated'">Last Updated</th>
          </tr>
        </thead>
        <tbody>
          <% tests.each do |t| %>
            <tr>
              <td><a href="/test/<%= t.id %>"><%= t.name %></a></td>
              <td><%= t.benchmark_profiles.length %></td>
              <td><%= t.updated_at %></td>
            </tr>
          <% end %>
        </tbody>
      </table>
    </div>
  <% else %>
    <div class="12-col">
      <p>I'm sorry, there don't appear to be any benchmark results logged yet. Check again later!</p>
    </div>
  <% end %>
</div>
