Cleanup templates for all views

Make use of the block structure to clean up index/events/search heavily
Fix a bug for the paging context on the events view
This commit is contained in:
AndyGrant committed 2019-10-25 05:49:45 -04:00
1 parent caa5bcfdf6
commit 9ec29cf03b
16 files changed
+542 -597

No files matched your search

+27 -27
View File
@@ -1,33 +1,33 @@
{% extends "OpenBench/base.html" %}
{% load mytags %}
{% block style %}
{% load static %}
{% endblock %}
{% load mytags %} <!-- For twoDigitPrecision() -->
{% block content %}
<table class="rawtable">
<tr>
<th>ID</th>
<th>User</th>
<th>System</th>
<th>Updated</th>
<th>Workload</th>
<th>Threads</th>
<th>MNPS</th>
</tr>
{% for machine in machines %}
<tr>
<td class="numeric">{{machine.id}}</td>
<td>{{machine.owner}}</td>
<td>{{machine.osname}}</td>
<td>{{machine.updated|date:'Y-m-d H:i'}}</td>
<td> <a href="/viewTest/{{machine.workload.id}}">{{machine.workload.dev.name}}</a></td>
<td class="numeric">{{machine.threads}}</td>
<td class="numeric">{{machine.mnps|twoDigitPrecision}}</td>
</tr>
{% endfor %}
</table>
<table class="rawtable">
<tr>
<th>ID</th>
<th>User</th>
<th>System</th>
<th>Updated</th>
<th>Workload</th>
<th>Threads</th>
<th>MNPS</th>
</tr>
{% for machine in machines %}
<tr>
<td class="numeric">{{machine.id}}</td>
<td>{{machine.owner}}</td>
<td>{{machine.osname}}</td>
<td>{{machine.updated|date:'Y-m-d H:i'}}</td>
<td> <a href="/viewTest/{{machine.workload.id}}">{{machine.workload.dev.name}}</a></td>
<td class="numeric">{{machine.threads}}</td>
<td class="numeric">{{machine.mnps|twoDigitPrecision}}</td>
</tr>
{% endfor %}
</table>
{% endblock %}