This commit is contained in:
@ -1,5 +1,5 @@
|
||||
<div class="grid-x grid-margin-x">
|
||||
<% if results.length > 0 %>
|
||||
<% if tests.length > 0 %>
|
||||
<div class="cell small-12">
|
||||
<h2>Latest benchmark results:</h2>
|
||||
</div>
|
||||
@ -7,17 +7,17 @@
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Hardware tested</th>
|
||||
<th>Benchmark used</th>
|
||||
<th>Score</th>
|
||||
<th>Test name</th>
|
||||
<th># Benchmarks</th>
|
||||
<th>Last Updated</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% results.each do |r| %>
|
||||
<% tests.each do |t| %>
|
||||
<tr>
|
||||
<td><%= r.hardware.name %></td>
|
||||
<td><%= r.benchmark.name %></td>
|
||||
<td><%= r.formatted_score() %></td>
|
||||
<td><%= t.name %></td>
|
||||
<td><%= t.benchmark.length %></td>
|
||||
<td><%= t.updated_at %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
|
@ -3,7 +3,7 @@
|
||||
<div class="grid-x grid-margin-x">
|
||||
<select class="cell medium-6" id="report_type" name="report_type" disabled>
|
||||
<option value="benchmark">Benchmark</option>
|
||||
<option value="hardware">Hardware</option>
|
||||
<option value="test">Test</option>
|
||||
</select>
|
||||
|
||||
<select class="cell medium-6" id="report_choice" name="report_choice">
|
||||
@ -15,8 +15,8 @@
|
||||
|
||||
<div class="grid-x grid-margin-x">
|
||||
<select class="cell small-12" id="report_compare" name="report_compare[]" multiple>
|
||||
<% hardware.each do |h| %>
|
||||
<option value="<%= h.id %>"><%= h.name %></option>
|
||||
<% tests.each do |t| %>
|
||||
<option value="<%= t.id %>"><%= t.name %></option>
|
||||
<% end %>
|
||||
</select>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user