Re-worked test views and routes for new DB schema

This commit is contained in:
2023-10-07 21:45:21 -06:00
parent 3349d42985
commit 987ecde7c7
3 changed files with 45 additions and 15 deletions

View File

@ -9,16 +9,20 @@
<table class="u-full-width">
<thead>
<tr>
<th>Test name</th>
<th>Description</th>
<th>Test Date</th>
<th>Benchmark</th>
<th>Hardware</th>
<th># of Results</th>
<th>Last updated</th>
</tr>
</thead>
<tbody>
{% for t in tests %}
<tr>
<td><a href="{{ url_for('test.view', { test_id: t.id }) }}">{{ t.name }}</a></td>
<td>{{ t.description | slice(0, 100) }}</td>
<td><a href="{{ url_for('test.view', { test_id: t.id }) }}">{{ t.date_tag }}</a></td>
<td>{{ t.benchmark.name }}</td>
<td>{{ t.component.name }}</td>
<td>{{ t.results | length }}</td>
<td>{{ t.updated_at | date("F jS \\a\\t g:ia") }}</td>
</tr>
{% endfor %}