game-data/views/index/index.erb

32 lines
843 B
Plaintext
Raw Normal View History

<div class="grid-x grid-margin-x">
<% if results.length > 0 %>
<div class="cell small-12">
<h2>Latest benchmark results:</h2>
</div>
<div class="cell small-12">
<table>
<thead>
<tr>
<th width="200">Hardware tested</th>
<th width="200">Benchmark used</th>
<th>Score</th>
</tr>
</thead>
<tbody>
<% results.each do |r| %>
<tr>
<td><%= r.hardware %></td>
<td><%= r.benchmark %></td>
<td><%= r.formatted_score() %></td>
</tr>
<% end %>
</tbody>
</table>
</div>
<% else %>
<div class="cell small-12">
<p>I'm sorry, there don't appear to be any benchmark results logged yet. Check again later!</p>
</div>
<% end %>
</div>