Rewrite the CSS, cleanup html files

This commit is contained in:
AndyGrant committed 2018-06-13 21:36:53 -04:00
1 parent bfc0c8957f
commit 6755e43385
10 files changed
+318 -260

No files matched your search

+5 -5
View File
@@ -16,7 +16,7 @@
<div id="sidebar">
{% block sidebar %}
<ul>
<li class="listheader">ADMIN</li>
<li class="header">ADMIN</li>
{% if user.is_authenticated %}
<li><a href="/logout/">Logout</a></li>
<li><a href="/viewProfile/">Profile</a></li>
@@ -26,15 +26,15 @@
{% endif %}
</ul>
<ul>
<li class="listheader"> CONTENT</li>
<li class="header"> CONTENT</li>
<li><a href="/index">Index</a></li>
<li><a href="/users">Users</a></li>
<li><a href="/machines">Machines</a></li>
<li><a href="/eventLog">Event Log</a></li>
<li><a href="/newTest">Create Test</a></li>
<li><a href="/eventLog">Events</a></li>
<li><a href="/newTest">New Test</a></li>
</ul>
<ul>
<li class="listheader">LINKS</li>
<li class="header">LINKS</li>
<li><a href="{{config.homepage}}">{{config.engine}}</a></li>
<li><a href="{{config.framework}}">OpenBench </a></li>
</ul>
+4 -4
View File
@@ -5,7 +5,7 @@
{% endblock %}
{% block content %}
<table>
<table class="rawtable">
<tr>
<th>Date</th>
<th>User</th>
@@ -13,9 +13,9 @@
</tr>
{% for event in events %}
<tr>
<td style='text-align:left'>{{event.creation|date:'Y-m-d H:i:s'}}</td>
<td style='text-align:left'>{{event.author}}</td>
<td style='text-align:left'>{{event.data}}</td>
<td>{{event.creation|date:'Y-m-d H:i:s'}}</td>
<td>{{event.author}}</td>
<td>{{event.data}}</td>
</tr>
{% endfor %}
<table>
+13 -13
View File
@@ -4,8 +4,8 @@
{% block content %}
<table>
<tr><td style="background-color:white;text-align:left"><h2>Pending</h2></td></tr>
<table class="datatable">
<tr><td class="embedded"><h2>Pending</h2></td></tr>
{% if pending %}
<tr>
<th>Creation</th>
@@ -19,15 +19,15 @@
<tr>
<td>{{test.creation|date:'Y-m-d'}}</td>
<td><a href="/viewUser/{{test.author}}">{{test.author}}</a></td>
<td style="text-align:left"><a href="/viewTest/{{test.id}}">{{test.dev.name}}</a></td>
<td style="text-align"><a href="{{test|gitDiffLink}}">diff</a></td>
<td><a href="/viewTest/{{test.id}}">{{test.dev.name}}</a></td>
<td class="textcenter"><a href="{{test|gitDiffLink}}">diff</a></td>
{% autoescape off %}
<td style="text-align:left;font-size:14px"><strong>{{test|statParagraph}}</strong></td>
<td class="statblock"><strong>{{test|statParagraph}}</strong></td>
{% endautoescape %}
</tr>
{% endfor %}
<tr><td style="background-color:white;text-align:left"><h2>Active</h2></td></tr>
<tr><td class="embedded"><h2>Active</h2></td></tr>
{% if active %}
<tr>
<th>Creation</th>
@@ -41,15 +41,15 @@
<tr class="{{test|testResultColour}}">
<td>{{test.creation|date:'Y-m-d'}}</td>
<td><a href="/viewUser/{{test.author}}">{{test.author}}</a></td>
<td style="text-align:left"><a href="/viewTest/{{test.id}}">{{test.dev.name}}</a></td>
<td style="text-align:left"><a href="{{test|gitDiffLink}}">diff</a></td>
<td><a href="/viewTest/{{test.id}}">{{test.dev.name}}</a></td>
<td class="textcenter"><a href="{{test|gitDiffLink}}">diff</a></td>
{% autoescape off %}
<td style="text-align:left;font-size:14px"><strong>{{test|statParagraph}}</strong></td>
<td class="statblock"><strong>{{test|statParagraph}}</strong></td>
{% endautoescape %}
</tr>
{% endfor %}
<tr><td style="background-color:white;text-align:left"><h2>Finished</h2></td></tr>
<tr><td class="embedded"><h2>Finished</h2></td></tr>
{% if completed %}
<tr>
<th>Creation</th>
@@ -63,10 +63,10 @@
<tr class="{{test|testResultColour}}">
<td>{{test.creation|date:'Y-m-d'}}</td>
<td><a href="/viewUser/{{test.author}}">{{test.author}}</a></td>
<td style="text-align:left"><a href="/viewTest/{{test.id}}">{{test.dev.name}}</a></td>
<td style="text-align:left"><a href="{{test|gitDiffLink}}">diff</a></td>
<td><a href="/viewTest/{{test.id}}">{{test.dev.name}}</a></td>
<td class="textcenter"><a href="{{test|gitDiffLink}}">diff</a></td>
{% autoescape off %}
<td style="text-align:left;font-size:14px"><strong>{{test|statParagraph}}</strong></td>
<td class="statblock"><strong>{{test|statParagraph}}</strong></td>
{% endautoescape %}
</tr>
{% endfor %}
+4 -4
View File
@@ -7,7 +7,7 @@
{% endblock %}
{% block content %}
<table style="padding-top:40px">
<table class="datatable">
<tr>
<th>User</th>
<th>System</th>
@@ -18,10 +18,10 @@
{% for machine in machines %}
<tr>
<td>{{machine.owner}}</th>
<td style="text-align:left">{{machine.osname}}</th>
<td>{{machine.osname}}</th>
<td>{{machine.updated|date:'Y-m-d H:i'}}</th>
<td>{{machine.threads}}</th>
<td>{{machine.mnps|twoDigitPrecision}}</th>
<td class="numeric">{{machine.threads}}</th>
<td class="numeric">{{machine.mnps|twoDigitPrecision}}</th>
</tr>
{% endfor %}
</table>
+35 -35
View File
@@ -3,57 +3,57 @@
{% block content %}
<form method="POST" action="/newTest/">
{% csrf_token %}
<div style="float:left; margin-right:0px">
<label type="text"> Dev Branch </label>
<input type="text" name="devbranch" autofocus>
<div>
<label> Dev Branch </label>
<input name="devbranch" autofocus>
</br>
<label type="text"> Dev Bench </label>
<input type="text" name="devbench">
<label> Dev Bench </label>
<input name="devbench">
</br>
<label type="text"> Dev Options </label>
<input type="text" value="Threads={{config.threads}} Hash={{config.hash}}" name="devoptions">
<label> Dev Options </label>
<input value="Threads={{config.threads}} Hash={{config.hash}}" name="devoptions">
</br>
<label type="text"> Dev Protocol </label>
<input type="text" value="{{config.protocol}}" name="devprotocol">
<label> Dev Protocol </label>
<input value="{{config.protocol}}" name="devprotocol">
</br>
<label type="text"> Base Branch </label>
<input type="text" value="master" name="basebranch">
<label> Base Branch </label>
<input value="master" name="basebranch">
</br>
<label type="text"> Base Bench </label>
<input type="text" name="basebench">
<label> Base Bench </label>
<input name="basebench">
</br>
<label type="text"> Base Options </label>
<input type="text" value="Threads={{config.threads}} Hash={{config.hash}}" name="baseoptions">
<label> Base Options </label>
<input value="Threads={{config.threads}} Hash={{config.hash}}" name="baseoptions">
</br>
<label type="text"> Base Protocol </label>
<input type="text" value="{{config.protocol}}" name="baseprotocol">
<label> Base Protocol </label>
<input value="{{config.protocol}}" name="baseprotocol">
</br>
<label type="text"> Source </label>
<input type="text" value="{{profile.repo}}" name="source">
<label> Source </label>
<input value="{{profile.repo}}" name="source">
</br>
<label type="text"> Opening Book </label>
<input type="text" value="{{config.bookname}}" name="bookname">
<label> Opening Book </label>
<input value="{{config.bookname}}" name="bookname">
</br>
<label type="text"> Time Control </label>
<input type="text" value="{{config.timecontrol}}" name="timecontrol">
<label> Time Control </label>
<input value="{{config.timecontrol}}" name="timecontrol">
</br>
<label type="text"> Priority </label>
<input type="text" value="0" name="priority">
<label> Priority </label>
<input value="0" name="priority">
</br>
<label type="text"> Throughput </label>
<input type="text" value="1000" name="throughput">
<label> Throughput </label>
<input value="1000" name="throughput">
</br>
<label type="text"> Lower Bound </label>
<input type="text" value="{{config.elolower}}" name="elolower">
<label> Lower Bound </label>
<input value="{{config.elolower}}" name="elolower">
</br>
<label type="text"> Upper Bound </label>
<input type="text" value="{{config.eloupper}}" name="eloupper">
<label> Upper Bound </label>
<input value="{{config.eloupper}}" name="eloupper">
</br>
<label type="text"> Alpha </label>
<input type="text" value="{{config.alpha}}" name="alpha">
<label> Alpha </label>
<input value="{{config.alpha}}" name="alpha">
</br>
<label type="text"> Beta </label>
<input type="text" value="{{config.beta}}" name="beta">
<label> Beta </label>
<input value="{{config.beta}}" name="beta">
</br>
<input type="submit" name="submit" value="Create Engine Test">
</div>
+6 -6
View File
@@ -7,14 +7,14 @@
{% block content %}
<form id="registerForm" method="POST" action="/register/">
{% csrf_token %}
<label type="text">Username</label>
<input type="text" name="username"></br>
<label type="text">Create Password</label>
<label>Username</label>
<input name="username"></br>
<label>Create Password</label>
<input type="password" name="password1"></br>
<label type="text">Verify Password</label>
<label>Verify Password</label>
<input type="password" name="password2"></br>
<label type="text">Email Address</label>
<input type="text" name="email"></br>
<label>Email Address</label>
<input name="email"></br>
<input type="submit" name="submit" value="Create User">
</form>
{% endblock %}
+4 -4
View File
@@ -5,7 +5,7 @@
{% endblock %}
{% block content %}
<table>
<table class="datatable">
<tr>
<th>Username</th>
<th>Games</th>
@@ -16,9 +16,9 @@
</tr>
{% for profile in profiles %}
<tr>
<td style="text-align:left"><a href="/viewUser/{{profile.user.username}}">{{profile.user.username}}</a></td>
<td>{{profile.games}}</td>
<td>{{profile.tests}}</td>
<td><a href="/viewUser/{{profile.user.username}}">{{profile.user.username}}</a></td>
<td class="numeric">{{profile.games}}</td>
<td class="numeric">{{profile.tests}}</td>
<td><a href="{{profile.repo}}">{{profile.repo}}</a></td>
<td>{{profile.enabled}}</td>
<td>{{profile.approver}}</td>
+16 -11
View File
@@ -7,16 +7,21 @@
{% block content %}
<form method="POST" action="/editProfile/">
{% csrf_token %}
<label type="text">Username</label>
<input readonly value="{{profile.user.username}}" type="text" name="username"></br>
<label type="text">Email</label>
<input value="{{profile.user.email}}" type="text" name="email"></br>
<label type="text">New Password</label>
<input type="password" name="password1"></br>
<label type="text">Verify Password</label>
<input type="password" name="password2"></br>
<label type="text">Source Repo</label>
<input value="{{profile.repo}}" type="text" name="repo"></br>
<input type="submit" name="submit" value="Edit">
<label>Username</label>
<input readonly value="{{profile.user.username}}" name="username">
</br>
<label>Email</label>
<input value="{{profile.user.email}}" name="email">
</br>
<label>New Password</label>
<input type="password" name="password1">
</br>
<label>Verify Password</label>
<input type="password" name="password2">
</br>
<label>Source Repo</label>
<input value="{{profile.repo}}" name="repo">
</br>
<input type="submit" name="submit" value="Update Profile">
</form>
{% endblock %}
+74 -71
View File
@@ -7,88 +7,89 @@
{% endblock %}
{% block content %}
<div style="float:left">
<table>
<div id="configuration">
<table class="rawtable">
<tr>
<th style="text-align:left">Dev Branch</th>
<td style="text-align:left">{{test.dev.name}}</td>
<td>Dev Branch</td>
<td>{{test.dev.name}}</td>
</tr>
<tr>
<th style="text-align:left">Dev Bench</th>
<td style="text-align:left">{{test.dev.bench}}</td>
<td>Dev Bench</td>
<td>{{test.dev.bench}}</td>
</tr>
<tr>
<th style="text-align:left">Dev Options</th>
<td style="text-align:left">{{test.devoptions}}</td>
<td>Dev Options</td>
<td>{{test.devoptions}}</td>
</tr>
<tr>
<th style="text-align:left">Dev Protocol</th>
<td style="text-align:left">{{test.dev.protocol}}</td>
<td>Dev Protocol</td>
<td>{{test.dev.protocol}}</td>
</tr>
<tr>
<th style="text-align:left">Dev Sha</th>
<td style="text-align:left">{{test.dev.sha}}</td>
<td>Dev Sha</td>
<td>{{test.dev.sha}}</td>
</tr>
<tr>
<th style="text-align:left">Base Branch</th>
<td style="text-align:left">{{test.base.name}}</td>
<td>Base Branch</td>
<td>{{test.base.name}}</td>
</tr>
<tr>
<th style="text-align:left">Base Bench</th>
<td style="text-align:left">{{test.base.bench}}</td>
<td>Base Bench</td>
<td>{{test.base.bench}}</td>
</tr>
<tr>
<th style="text-align:left">Base Options</th>
<td style="text-align:left">{{test.baseoptions}}</td>
<td>Base Options</td>
<td>{{test.baseoptions}}</td>
</tr>
<tr>
<th style="text-align:left">Base Protocol</th>
<td style="text-align:left">{{test.base.protocol}}</td>
<td>Base Protocol</td>
<td>{{test.base.protocol}}</td>
</tr>
<tr>
<th style="text-align:left">Base Sha</th>
<td style="text-align:left">{{test.base.sha}}</td>
<td>Base Sha</td>
<td>{{test.base.sha}}</td>
</tr>
<tr>
<th style="text-align:left">Source Repo</th>
<td style="text-align:left">{{test.source}}</td>
<td>Source Repo</td>
<td>{{test.source}}</td>
</tr>
<tr>
<th style="text-align:left">Opening Book</th>
<td style="text-align:left">{{test.bookname}}</td>
<td>Opening Book</td>
<td>{{test.bookname}}</td>
</tr>
<tr>
<th style="text-align:left">Time Control</th>
<td style="text-align:left">{{test.timecontrol}}s</td>
<td>Time Control</td>
<td>{{test.timecontrol}}s</td>
</tr>
<tr>
<th style="text-align:left">Elo Bounds</th>
<td style="text-align:left">[{{test.elolower}}, {{test.eloupper}}]</td>
<td>Elo Bounds</td>
<td>[{{test.elolower}}, {{test.eloupper}}]</td>
</tr>
<tr>
<th style="text-align:left">SPRT Bounds</th>
<td style="text-align:left">({{test.lowerllr|twoDigitPrecision}}, {{test.upperllr|twoDigitPrecision}})</td>
<td>SPRT Bounds</td>
<td>({{test.lowerllr|twoDigitPrecision}}, {{test.upperllr|twoDigitPrecision}})</td>
</tr>
<tr>
<th style="text-align:left">Creation</th>
<td style="text-align:left">{{test.creation|date:'Y-m-d H:i:s'}}</td>
<td>Creation</td>
<td>{{test.creation|date:'Y-m-d H:i:s'}}</td>
</tr>
<tr>
<th style="text-align:left">Author</th>
<td style="text-align:left">{{test.author}}</td>
<td>Author</td>
<td>{{test.author}}</td>
</tr>
</table>
</div>
<div style="float:left;margin-left:40px">
<div id="actions">
<h2>Actions</h2>
<a class="buttonlink" href="/approveTest/{{test.id}}/" style="background-color: #9DF779">Approve</a>
<a class="anchorbutton" id="approvebutton" href="/approveTest/{{test.id}}/">Approve</a>
{% if test.finished %}
<a class="buttonlink" href="/restartTest/{{test.id}}/" style="background-color: #EEF788">Restart</a>
<a class="anchorbutton" id="restartbutton" href="/restartTest/{{test.id}}/">Restart</a>
{% else %}
<a class="buttonlink" href="/stopTest/{{test.id}}/" style="background-color: #EEF788">Stop</a>
<a class="anchorbutton" id="stopbutton" href="/stopTest/{{test.id}}/">Stop</a>
{% endif %}
<a class="buttonlink" href="/deleteTest/{{test.id}}/" style="background-color: #FA8E8E">Delete</a>
<a class="anchorbutton" id="deletebutton" href="/deleteTest/{{test.id}}/">Delete</a>
<h4>{{test.dev.name}} vs {{test.base.name}} <a href="{{test|gitDiffLink}}">DIFF</a></h4>
{% autoescape off %}
@@ -97,39 +98,41 @@
<form method="POST" action="/editTest/{{test.id}}/">
{% csrf_token %}
<label type="text">Priority</label>
<input style="width: 240px" type="text" value="{{test.priority}}" name="priority"></br>
<label type="text">Throughput</label>
<input style="width: 240px" type="text" value="{{test.throughput}}" name="throughput"></br>
<label>Priority</label>
<input value="{{test.priority}}" name="priority"></br>
<label>Throughput</label>
<input value="{{test.throughput}}" name="throughput"></br>
<input type="submit" name="submit" value="Modify">
</form>
</div>
<br>
<table style="padding-top:40px">
<tr>
<th>User</th>
<th>Machine</th>
<th>Updated</th>
<th>Games</th>
<th>Wins</th>
<th>Losses</th>
<th>Draws</th>
<th>Crashes</th>
<th>Time</th>
</tr>
{% for result in results %}
<tr>
<td>{{result.machine.owner}}</th>
<td style="text-align:left">{{result.machine.osname}}</th>
<td>{{result.updated|date:'Y-m-d H:i'}}</td>
<td>{{result.games}}</td>
<td>{{result.wins}}</td>
<td>{{result.losses}}</td>
<td>{{result.draws}}</td>
<td>{{result.crashes}}</td>
<td>{{result.timeloss}}</td>
</tr>
{% endfor %}
</table>
<div id="results">
<table class="datatable">
<tr>
<th>User</th>
<th>Machine</th>
<th>Updated</th>
<th>Games</th>
<th>Win</th>
<th>Loss</th>
<th>Draw</th>
<th>Crash</th>
<th>Time</th>
</tr>
{% for result in results %}
<tr>
<td>{{result.machine.owner}}</td>
<td>{{result.machine.osname}}</td>
<td>{{result.updated|date:'Y-m-d H:i'}}</td>
<td class="numeric">{{result.games}}</td>
<td class="numeric">{{result.wins}}</td>
<td class="numeric">{{result.losses}}</td>
<td class="numeric">{{result.draws}}</td>
<td class="numeric">{{result.crashes}}</td>
<td class="numeric">{{result.timeloss}}</td>
</tr>
{% endfor %}
</table>
</div>
{% endblock %}