Partial work cleaning up front & backends
This commit is contained in:
1 parent
09cc9d1949
commit
9c488fb521
17 files changed
+483
-349
No files matched your search
@@ -54,15 +54,15 @@
|
||||
<ul>
|
||||
<li class="header">INFO</li>
|
||||
<li><a href="/users">Users</a></li>
|
||||
<li><a href="/eventLog">Events</a></li>
|
||||
<li><a href="/machines">Machines</a></li>
|
||||
<li><a href="/eventLog">EventLog</a></li>
|
||||
<li><a href="{{config.framework}}">OpenBench</a></li>
|
||||
</ul>
|
||||
|
||||
<ul>
|
||||
<li class="header">ENGINES</li>
|
||||
{% for engine, data in config.engines.items|dictsort:"0.lower" %}
|
||||
<li><a href="{{data.source}}">{{data.name}}</a></li>
|
||||
<li><a href="{{data.source}}">{{engine}}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
|
||||
@@ -2,13 +2,14 @@
|
||||
|
||||
{% block content %}
|
||||
|
||||
<table class="rawtable">
|
||||
<table>
|
||||
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th>User</th>
|
||||
<th>Test</th>
|
||||
<th>Action</th>
|
||||
<th>DATE</th>
|
||||
<th>USER</th>
|
||||
<th>TEST</th>
|
||||
<th>TIME</th>
|
||||
<th>ACTION</th>
|
||||
</tr>
|
||||
|
||||
{% for event in events %}
|
||||
@@ -16,6 +17,7 @@
|
||||
<td>{{event.creation|date:'Y-m-d H:i:s'}}</td>
|
||||
<td>{{event.author}}</td>
|
||||
<td><a href="/viewTest/{{event.test.id}}">{{event.test.dev.name}}</a></td>
|
||||
<td>{{event.test.timecontrol}}</td>
|
||||
<td>{{event.data}}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
@@ -8,25 +8,27 @@
|
||||
{% if paging.page == 1 and greens == False %}
|
||||
|
||||
<!-- Currently Pending tests (Waiting to be approved) -->
|
||||
<tr><td class="embedded" colspan='6'><h2>Pending</h2></td></tr>
|
||||
{% for test in pending %}
|
||||
{% include "OpenBench/Blocks/testsummary.html" %}
|
||||
{% endfor %}
|
||||
|
||||
<!-- Show Worker information when running a test -->
|
||||
{% if active %}
|
||||
<tr><td class="embedded" colspan='6'><h2>Active {{status}}</h2></td></tr>
|
||||
{% if pending %}
|
||||
<tr><th colspan='6'>Pending</th></tr>
|
||||
{% for test in pending %}
|
||||
{% include "OpenBench/Blocks/testsummary.html" %}
|
||||
{% endfor %}
|
||||
<tr class="table-spacer"><th></th></tr>
|
||||
{% endif %}
|
||||
|
||||
<!-- Currently Running tests (Waiting to be completed) -->
|
||||
{% for test in active %}
|
||||
{% include "OpenBench/Blocks/testsummary.html" %}
|
||||
{% endfor %}
|
||||
{% if active %}
|
||||
<tr><th colspan='6'>Active {{status}}</th></tr>
|
||||
{% for test in active %}
|
||||
{% include "OpenBench/Blocks/testsummary.html" %}
|
||||
{% endfor %}
|
||||
<tr class="table-spacer"><th></th></tr>
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
<!-- Tests which have already finished -->
|
||||
<tr><td class="embedded" colspan='6'><h2>Finished</h2></td></tr>
|
||||
<tr><th colspan='6'>Finished</th></tr>
|
||||
{% for test in completed %}
|
||||
{% include "OpenBench/Blocks/testsummary.html" %}
|
||||
{% endfor %}
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
{% extends "OpenBench/base.html" %}
|
||||
|
||||
{% load mytags %} <!-- For twoDigitPrecision() -->
|
||||
{% load mytags %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<table class="rawtable">
|
||||
<table>
|
||||
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>User</th>
|
||||
<th>System</th>
|
||||
<th>Updated</th>
|
||||
<th>Workload</th>
|
||||
<th>Threads</th>
|
||||
<th>USER</th>
|
||||
<th>SYSTEM</th>
|
||||
<th>UPDATED</th>
|
||||
<th>WORKLOAD</th>
|
||||
<th>THREADS</th>
|
||||
<th>MNPS</th>
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -75,9 +75,9 @@
|
||||
<label> Book </label> <select name="bookname">
|
||||
{% for name, data in config.books.items %}
|
||||
{% if data.default %}
|
||||
<option selected value="{{name}}">{{data.name}}</option>
|
||||
<option selected value="{{name}}">{{name}}</option>
|
||||
{% else %}
|
||||
<option value="{{name}}">{{data.name}}</option>
|
||||
<option value="{{name}}">{{name}}</option>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</select><br>
|
||||
|
||||
@@ -1,42 +1,38 @@
|
||||
{% extends "OpenBench/base.html" %}
|
||||
|
||||
{% load mytags %} <!-- For sumAttributes() & insertCommas() -->
|
||||
{% load mytags %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<table class="summarytable">
|
||||
<tr>
|
||||
<th class="numeric"> OVERALL </th>
|
||||
<th class="numeric">| USERS {{ profiles|length }} </th>
|
||||
<th class="numeric">| TESTS {{ profiles|sumAttributes:"tests"|insertCommas }}</th>
|
||||
<th class="numeric">| GAMES {{ profiles|sumAttributes:"games"|insertCommas }}</th>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table class="rawtable">
|
||||
<table>
|
||||
|
||||
<tr>
|
||||
<th>Username</th>
|
||||
<th>Last Seen</th>
|
||||
<th class="numeric">Games</th>
|
||||
<th class="numeric">Tests</th>
|
||||
<th>Engine</th>
|
||||
<th>Source Repository</th>
|
||||
<th>USERNAME</th>
|
||||
<th>GAMES</th>
|
||||
<th>TESTS</th>
|
||||
<th>ENGINE</th>
|
||||
<th>SOURCE REPOSITORY</th>
|
||||
</tr>
|
||||
|
||||
{% for profile in profiles %}
|
||||
{% if profile.enabled %}
|
||||
<tr>
|
||||
<td><a href="/viewUser/{{profile.user.username}}">{{profile.user.username}}</a></td>
|
||||
<td>{{profile.updated|date:'Y-m-d'}}</td>
|
||||
<td class="numeric">{{profile.games}}</td>
|
||||
<td class="numeric">{{profile.tests}}</td>
|
||||
<td style="text-align: right">{{profile.games|insertCommas}}</td>
|
||||
<td style="text-align: right">{{profile.tests|insertCommas}}</td>
|
||||
<td>{{profile.engine}}</td>
|
||||
<td><a href="{{profile.repo}}">{{profile.repo}}</a></td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
<tr style="font-weight: bold">
|
||||
<th>OVERALL</th>
|
||||
<th>{{profiles|sumAttributes:"games"|insertCommas}}</th>
|
||||
<th>{{profiles|sumAttributes:"tests"|insertCommas}}</th>
|
||||
<th></th><th></th>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
{% endblock %}
|
||||
@@ -9,25 +9,23 @@
|
||||
{% block content %}
|
||||
|
||||
<div id="configuration">
|
||||
<table class="rawtable">
|
||||
<tr><td>Engine</td><td>{{test.engine}}</td></tr>
|
||||
<tr><td>Dev Branch</td><td>{{test.dev.name}}</td></tr>
|
||||
<tr><td>Dev Bench</td><td>{{test.dev.bench}}</td></tr>
|
||||
<tr><td>Dev Options</td><td>{{test.devoptions}}</td></tr>
|
||||
<tr><td>Dev Protocol</td><td>{{test.dev.protocol}}</td></tr>
|
||||
<tr><td>Dev Sha</td><td>{{test.dev.sha}}</td></tr>
|
||||
<tr><td>Base Branch</td><td>{{test.base.name}}</td></tr>
|
||||
<tr><td>Base Bench</td><td>{{test.base.bench}}</td></tr>
|
||||
<tr><td>Base Options</td><td>{{test.baseoptions}}</td></tr>
|
||||
<tr><td>Base Protocol</td><td>{{test.base.protocol}}</td></tr>
|
||||
<tr><td>Base Sha</td><td>{{test.base.sha}}</td></tr>
|
||||
<tr><td>Source Repo</td><td>{{test.source}}</td></tr>
|
||||
<tr><td>Opening Book</td><td>{{test.bookname}}</td></tr>
|
||||
<tr><td>Time Control</td><td>{{test.timecontrol}}s</td></tr>
|
||||
<tr><td>Elo Bounds</td><td>[{{test.elolower}}, {{test.eloupper}}]</td></tr>
|
||||
<tr><td>SPRT Bounds</td><td>({{test.lowerllr|twoDigitPrecision}}, {{test.upperllr|twoDigitPrecision}})</td></tr>
|
||||
<tr><td>Creation</td><td>{{test.creation|date:'Y-m-d H:i:s'}}</td></tr>
|
||||
<tr><td>Author</td><td>{{test.author}}</td></tr>
|
||||
<table class="datatable left-align">
|
||||
<tr><th>Engine</th><td>{{test.engine}}</td></tr>
|
||||
<tr><th>Dev Branch</th><td>{{test.dev.name}}</td></tr>
|
||||
<tr><th>Dev Bench</th><td>{{test.dev.bench}}</td></tr>
|
||||
<tr><th>Dev Options</th><td>{{test.devoptions}}</td></tr>
|
||||
<tr><th>Dev Sha</th><td>{{test.dev.sha}}</td></tr>
|
||||
<tr><th>Base Branch</th><td>{{test.base.name}}</td></tr>
|
||||
<tr><th>Base Bench</th><td>{{test.base.bench}}</td></tr>
|
||||
<tr><th>Base Options</th><td>{{test.baseoptions}}</td></tr>
|
||||
<tr><th>Base Sha</th><td>{{test.base.sha}}</td></tr>
|
||||
<tr><th>Source Repo</th><td>{{test.source}}</td></tr>
|
||||
<tr><th>Opening Book</th><td>{{test.bookname}}</td></tr>
|
||||
<tr><th>Time Control</th><td>{{test.timecontrol}}s</td></tr>
|
||||
<tr><th>Elo Bounds</th><td>[{{test.elolower}}, {{test.eloupper}}]</td></tr>
|
||||
<tr><th>SPRT Bounds</th><td>({{test.lowerllr|twoDigitPrecision}}, {{test.upperllr|twoDigitPrecision}})</td></tr>
|
||||
<tr><th>Creation</th><td>{{test.creation|date:'Y-m-d H:i:s'}}</td></tr>
|
||||
<tr><th>Author</th><td>{{test.author}}</td></tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@@ -77,16 +75,20 @@
|
||||
<!-- ELO, SPRT, LLR, Games -->
|
||||
<pre>{{test|longStatBlock|linebreaksbr}}</pre>
|
||||
|
||||
|
||||
<!-- Forum to modify the Priority or Throughput -->
|
||||
<form method="POST" action="/editTest/{{test.id}}/">
|
||||
|
||||
{% csrf_token %}
|
||||
|
||||
<label>Priority</label><input value="{{test.priority}}" name="priority"><br>
|
||||
<label>Throughput</label><input value="{{test.throughput}}" name="throughput"><br>
|
||||
|
||||
<!-- Edit Button: For Approvers or Test Authors -->
|
||||
{% if profile.approver or profile.user.username == test.author %}
|
||||
<input type="submit" name="submit" value="Modify">
|
||||
<input type="submit" name="submit" value="Modify">
|
||||
{% else %}
|
||||
<input class="deadbutton" type="submit" name="submit" value="Modify">
|
||||
<input class="deadbutton" type="submit" name="submit" value="Modify">
|
||||
{% endif %}
|
||||
|
||||
</form>
|
||||
@@ -101,21 +103,21 @@
|
||||
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Owner</th>
|
||||
<th>System</th>
|
||||
<th>USER</th>
|
||||
<th>OS</th>
|
||||
<th>Last Updated</th>
|
||||
<th style="width: 60px">Games</th>
|
||||
<th style="width: 60px">Won</th>
|
||||
<th style="width: 60px">Lost</th>
|
||||
<th style="width: 60px">Drawn</th>
|
||||
<th style="width: 60px">Time</th>
|
||||
<th style="width: 60px">Crash</th>
|
||||
<th style="width: 60px">GAMES</th>
|
||||
<th style="width: 60px">WON</th>
|
||||
<th style="width: 60px">LOST</th>
|
||||
<th style="width: 60px">DRAWN</th>
|
||||
<th style="width: 60px">TIME</th>
|
||||
<th style="width: 60px">CRASH</th>
|
||||
</tr>
|
||||
|
||||
{% for result in results %}
|
||||
<tr>
|
||||
<td>{{result.machine.id}}</td>
|
||||
<td>{{result.machine.owner}}</td>
|
||||
<td>{{result.machine.owner|slice:"6"}}</td>
|
||||
<td>{{result.machine.osname|truncatewords:1|slice:":-4"}}</td>
|
||||
<td>{{result.updated|date:'Y-m-d H:i'}}</td>
|
||||
<td class="numeric">{{result.games}}</td>
|
||||
|
||||
Reference in new issue
Block a user