2023-07-05 22:08:37 -04:00
|
|
|
<div class="grid-x grid-margin-x">
|
|
|
|
<div class="cell small-12">
|
|
|
|
<h1>List of benchmarks</h1>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="cell small-12">
|
|
|
|
<p>
|
|
|
|
<a href="/benchmark/add">Add new benchmark</a>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="grid-x grid-margin-x">
|
|
|
|
<% if benchmarks.length > 0 %>
|
|
|
|
<div class="cell small-12">
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Benchmark name</th>
|
|
|
|
<th>Scoring type</th>
|
|
|
|
<th>Date added</th>
|
|
|
|
<th>Date modified</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<% benchmarks.each do |b| %>
|
|
|
|
<tr>
|
|
|
|
<td><%= b.name %></td>
|
|
|
|
<td><%= b.scoring %></td>
|
2023-07-05 22:27:07 -04:00
|
|
|
<td><%= date_format(b.created_at) %></td>
|
|
|
|
<td><%= date_format(b.updated_at) %></td>
|
2023-07-05 22:08:37 -04:00
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<% else %>
|
|
|
|
<div class="cell small-12">
|
|
|
|
<p>I'm sorry, there doesn't appear to be any benchmarks added yet. Check again later!</p>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|