Fixed a couple of things missing from result displays
This commit is contained in:
parent
b8bec03357
commit
f0115847b8
@ -3,4 +3,8 @@ class Result < Sequel::Model
|
|||||||
many_to_one :hardware
|
many_to_one :hardware
|
||||||
many_to_one :benchmark
|
many_to_one :benchmark
|
||||||
|
|
||||||
|
def formatted_score()
|
||||||
|
return self.score
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -15,8 +15,8 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
<% results.each do |r| %>
|
<% results.each do |r| %>
|
||||||
<tr>
|
<tr>
|
||||||
<td><%= r.hardware %></td>
|
<td><%= r.hardware.name %></td>
|
||||||
<td><%= r.benchmark %></td>
|
<td><%= r.benchmark.name %></td>
|
||||||
<td><%= r.formatted_score() %></td>
|
<td><%= r.formatted_score() %></td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
Loading…
Reference in New Issue
Block a user