Added some more scaffolding to the project to get going; added Foundation css to start with styles

This commit is contained in:
2023-07-03 23:02:25 -04:00
parent b376bf3a79
commit 6f680e72e5
12 changed files with 121 additions and 12 deletions

31
views/index/index.erb Normal file
View 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>