Added back reference associations for result; added table of results to test view
This commit is contained in:
@ -66,7 +66,32 @@
|
||||
|
||||
<h4>Latest Benchmark Results:</h4>
|
||||
|
||||
<p>There are currently no benchmarks recorded in this test.</p>
|
||||
{{ $length := len .test.Results }} {{ if eq $length 0 }}
|
||||
<p>There are currently no benchmarks recorded in this test.</p>
|
||||
{{ else }}
|
||||
<table class="u-full-width">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Hardware</th>
|
||||
<th>Benchmark</th>
|
||||
<th>Average</th>
|
||||
<th>Minimum</th>
|
||||
<th>Maximum</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{ range $res := .test.Results }}
|
||||
<tr>
|
||||
<td>{{ $res.Hardware.Name }}</td>
|
||||
<td>{{ $res.Benchmark.Name }}</td>
|
||||
<td>{{ $res.AverageScore }}</td>
|
||||
<td>{{ $res.MinimumScore }}</td>
|
||||
<td>{{ $res.MaximumScore }}</td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
</tbody>
|
||||
</table>
|
||||
{{ end }}
|
||||
|
||||
<hr>
|
||||
|
||||
|
Reference in New Issue
Block a user