Added some more scaffolding to the project to get going; added Foundation css to start with styles
This commit is contained in:
31
views/index/index.erb
Normal file
31
views/index/index.erb
Normal file
@ -0,0 +1,31 @@
|
||||
<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>
|
Reference in New Issue
Block a user