Add old style / templates, hook up index
This commit is contained in:
1 parent
9b400155a1
commit
e0159edd35
7 files changed
+254
-20
No files matched your search
@@ -1,5 +1,7 @@
|
||||
{% extends "OpenBench/base.html" %}
|
||||
|
||||
{% load mytags %}
|
||||
|
||||
{% block title %}
|
||||
Index
|
||||
{% endblock %}
|
||||
@@ -7,12 +9,12 @@ Index
|
||||
{% block content %}
|
||||
<table>
|
||||
<tr>
|
||||
<th class="tabletitle"> TEST </th>
|
||||
<th class="tabletitle"> DIFF </th>
|
||||
<th class="tabletitle"> APPROVE </th>
|
||||
<th class="tabletitle">TEST</th>
|
||||
<th class="tabletitle">DIFF</th>
|
||||
<th class="tabletitle">APPROVE</th>
|
||||
</tr>
|
||||
|
||||
{% for test in pendingtests %}
|
||||
{% for test in pending %}
|
||||
<tr class={{test.status}}>
|
||||
<td style="text-align:left;font-weight:bold">
|
||||
<a href="/viewTest/{{test.id}}">{{test.dev.name}}</a>
|
||||
@@ -22,16 +24,18 @@ Index
|
||||
</td>
|
||||
<td><a href="/approveTest/{{test.id}}">approve</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<th class="tabletitle"> TEST </th>
|
||||
<th class="tabletitle"> DIFF </th>
|
||||
<th class="tabletitle"> STATS </th>
|
||||
<th class="tabletitle"> ELO </th>
|
||||
<th class="tabletitle">AUTHOR</th>
|
||||
<th class="tabletitle">TEST</th>
|
||||
<th class="tabletitle">DIFF</th>
|
||||
<th class="tabletitle">STATS</th>
|
||||
<th class="tabletitle">ELO</th>
|
||||
</tr>
|
||||
|
||||
{% for test in activetests %}
|
||||
{% for test in active %}
|
||||
<tr class={{test.status}}>
|
||||
<td style="text-align:left;font-weight:bold">
|
||||
<a href="/viewTest/{{test.id}}">{{test.dev.name}}</a>
|
||||
@@ -48,5 +52,25 @@ Index
|
||||
</strong></td>
|
||||
<td> {{enginetest.elo|twoDigitPrecision}} </td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
{% for test in completed %}
|
||||
<tr class={{test.status}}>
|
||||
<td style="text-align:left;font-weight:bold">
|
||||
<a href="/viewTest/{{test.id}}">{{test.dev.name}}</a>
|
||||
</td>
|
||||
<td style="text-align:left;font-weight:bold">
|
||||
<a href="{{test|gitDiffLink}}">diff</a>
|
||||
</td>
|
||||
<td style="text-align:left;font-size:14px"><strong>
|
||||
SPRT @ {{test.timecontrol}}s Threads={{test.threads}} Hash={{test.hashsize}}MB<br>
|
||||
LLR: {{test.currentllr|twoDigitPrecision}} ({{test.lowerllr|twoDigitPrecision}},
|
||||
{{test.upperllr|twoDigitPrecision}}) [{{test.elolower|twoDigitPrecision}},
|
||||
{{test.eloupper|twoDigitPrecision}}] <br> Games: {{test.games}}
|
||||
W: {{test.wins}} L: {{test.losses}} D: {{test.draws}}
|
||||
</strong></td>
|
||||
<td> {{enginetest.elo|twoDigitPrecision}} </td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endblock %}
|
||||
Reference in new issue
Block a user