Added eloquent and phinx to project to handle database interactions and migrations; added Result model for storing benchmark results

This commit is contained in:
2022-11-25 16:48:54 -05:00
parent 323152a8f5
commit 9a65b5f27a
11 changed files with 2064 additions and 13 deletions

View File

@ -46,7 +46,7 @@
</div>
</div>
<input class="button button-primary" type="submit" value="Submit">
<input class="button button-primary u-full-width" type="submit" value="Submit">
</form>
</div>
</div>

View File

@ -4,4 +4,29 @@
{% block content %}
<p>Results list...</p>
<table class="u-full-width">
<thead>
<tr>
<th>Hardware name</th>
<th>Benchmark</th>
<th>Result type</th>
<th>Avg.</th>
<th>Min.</th>
<th>Max.</th>
</tr>
</thead>
<tbody>
{% for r in results %}
<tr>
<td>{{ r.component }}</td>
<td>{{ r.benchmark }}</td>
<td>{{ r.type | capitalize }}</td>
<td>{{ r.average }}</td>
<td>{{ r.minimum ? r.minimum : 'N/a' }}</td>
<td>{{ r.maximum ? r.maximum : 'N/a' }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}