game-data/views/benchmark/index.erb

43 lines
1.0 KiB
Plaintext
Raw Normal View History

<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>
<td><%= b.created_at %></td>
<td><%= b.updated_at %></td>
</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>