Files
OpenBench/Templates/OpenBench/machines.html
T
2022-12-02 15:37:40 -05:00

34 lines
1.2 KiB
HTML

{% extends "OpenBench/base.html" %}
{% load mytags %}
{% block content %}
<table class="table table-striped table-sm table-hover">
<thead class="bg-black">
<tr>
<th style="color:green;">#</th>
<th style="color:green;">User</th>
<th style="color:green;">System</th>
<th style="color:green;">Updated</th>
<th style="color:green;">Workload</th>
<th style="color:green;">Threads</th>
<th style="color:green;">MNPS</th>
</tr>
</thead>
{% for machine in machines %}
<tr>
<td class="numeric">{{ machine.id }}</td>
<td>{{ machine.user.username|capfirst }}</td>
<td>{{ machine.osname|truncatewords:1|slice:":-2" }}</td>
<td class="timestamp">{{ machine.updated|date:'U' }}</td>
<td><a href="/test/{{ machine.workload.id }}">{{ machine.workload.dev.name|prettyName }}</a></td>
<td class="numeric">{{ machine.threads }}</td>
<td class="numeric">{{ machine.mnps|twoDigitPrecision }}</td>
</tr>
{% endfor %}
</table>
{% endblock %}