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
+326 -268

No files matched your search

+177 -127
View File
@@ -1,149 +1,199 @@
body { body {
font-family: "Courier New"; font-family: "Courier New";
font-size: 20px; font-size: 16px;
} }
#sidebar { #sidebar {
float: left; float: left;
margin: 20px; margin: 20px;
padding-right: 20px;
} }
#content { #sidebar ul {
float: left;
padding-top: 20px;
padding-bottom: 20px;
display: block;
width: auto;
}
#error {
background-color: RED;
padding: 8px;
text-align: center;
}
table {
background-color: none;
}
.tabletitle {
background-color: GREEN;
font-size: 20px;
}
tr {
background-color: #DBDBDB;
}
th {
text-align: center;
padding: 4px 16px;
background-color: #4CAF50;
color: white;
}
td {
padding: 4px 16px;
text-align: right;
}
.green:nth-child(even){background-color: #2FFA62}
.green:nth-child(odd){background-color: #9DF779}
.yellow:nth-child(even){background-color: #E9FA32}
.yellow:nth-child(odd){background-color: #EEF788}
.red:nth-child(even){background-color: #FAA5A5}
.red:nth-child(odd){background-color: #FA8E8E}
ul {
list-style-type: none; list-style-type: none;
display: block; padding: 0px;
margin: 20px 0px 0px 0px;
padding-left: 10px;
} }
li { #sidebar .header {
margin: 8px;
}
.listheader {
font-weight: bold; font-weight: bold;
color: grey; color: grey;
} }
table { #sidebar li {
line-height: 75%; font-size: 20px;
}
#content {
float: left;
padding: 20px 0px;
}
#content label {
width: 180px;
font-weight:bold;
display: inline-block;
}
#content input {
padding: 8px;
margin: 2px 0px;
display: inline-block;
vertical-align: middle;
width: 400px;
}
#content input:read-only {
font-weight: bold;
}
#content input:-moz-read-only {
font-weight: bold;
}
#content input[type=submit] {
background-color: #15A049;
color: white;
border: none;
border-radius: 8px;
cursor: pointer;
width: 100%;
font-weight: bold;
}
#content input[type=submit]:hover {
background-color: #4CAF50;
}
#content #configuration {
float: left;
margin-top: 20px;
}
#content .rawtable td {
padding-right: 30px;
}
#content .rawtable th {
text-align: left;
}
#content #actions {
float: left;
}
#content #actions .anchorbutton {
color: black;
padding: 8px 8px;
border-radius: 4px;
font-weight: bold;
text-align: center;
display: inline-block;
width: 20%;
}
#content #actions #approvebutton {
background-color: #9DF779;
}
#content #actions #stopbutton {
background-color: #EEF788;
}
#content #actions #restartbutton {
background-color: #EEF788;
}
#content #actions #deletebutton {
background-color: #FA8E8E;
}
#content #actions input {
width: 240px;
}
#content #actions input[type=submit] {
width: 100%;
}
#content .datatable th {
color: white;
font-size: 20px;
padding: 6px 12px;
border: 1px solid black;
background-color: #15A049;
}
#content .datatable td {
padding: 6px 12px;
border: 1px solid black;
}
#content .datatable .numeric {
text-align: right;
}
#content .datatable tr {
background-color: #DBDBDB;
}
#content .datatable .embedded {
background-color: white;
text-align: left;
border: none;
padding-left: 0px;
}
#content .datatable .embedded h2 {
margin: 16px 0px 0px 0px;
pading: 0px;
}
#content .datatable .green {
background-color: #9DF779
}
#content .datatable .yellow {
background-color: #EEF788
}
#content .datatable .red {
background-color: #FAA5A5
}
#content .datatable .statblock {
line-height: 70%;
}
#content #results {
display: inline-block;
margin-top: 50px;
width: inherit;
}
#content table {
line-height: 96%;
}
#content .textcenter {
text-align: center;
}
#content strong {
font-size: 14px;
}
#content a {
font-weight: bold;
}
#error {
background-color: #ED7676;
padding: 8px;
text-align: center;
font-weight: bold;
font-size: 20px;
} }
a:link, a:visited, a:hover, a:active { a:link, a:visited, a:hover, a:active {
text-decoration: none; text-decoration: none;
color: blue; color: blue;
} }
#pagebrowse {
display: inline-block;
text-align: center;
width: 100%;
margin-top: 8px;
}
.page {
border-style: solid;
border-width: 2px;
border-color: black;
border-radius: 4px;
font-weight: bold;
text-align: center;
display: inline-block;
padding-top : 8px;
padding-bottom: 8px;
width: 5%;
}
input[type=text], input[type=password], textarea, select {
padding: 8px 6px;
display: inline-block;
vertical-align: middle;
width: 400px;
}
input[type=submit] {
background-color: #4CAF50;
color: white;
padding: 8px 6px;
margin: 8px 0;
border: none;
border-radius: 4px;
cursor: pointer;
width: 100%;
font-weight: bold;
}
input[type=submit]:hover {
background-color: #45a049;
}
label, option {
display: inline-block;
width: 180px;
font-weight:bold;
vertical-align: middle;
}
.buttonlink {
background-color: #4CAF50;
color: white;
padding: 8px 6px;
margin: 8px 0;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: bold;
text-align: center;
display: inline-block;
width: 20%;
}
+5 -5
View File
@@ -16,7 +16,7 @@
<div id="sidebar"> <div id="sidebar">
{% block sidebar %} {% block sidebar %}
<ul> <ul>
<li class="listheader">ADMIN</li> <li class="header">ADMIN</li>
{% if user.is_authenticated %} {% if user.is_authenticated %}
<li><a href="/logout/">Logout</a></li> <li><a href="/logout/">Logout</a></li>
<li><a href="/viewProfile/">Profile</a></li> <li><a href="/viewProfile/">Profile</a></li>
@@ -26,15 +26,15 @@
{% endif %} {% endif %}
</ul> </ul>
<ul> <ul>
<li class="listheader"> CONTENT</li> <li class="header"> CONTENT</li>
<li><a href="/index">Index</a></li> <li><a href="/index">Index</a></li>
<li><a href="/users">Users</a></li> <li><a href="/users">Users</a></li>
<li><a href="/machines">Machines</a></li> <li><a href="/machines">Machines</a></li>
<li><a href="/eventLog">Event Log</a></li> <li><a href="/eventLog">Events</a></li>
<li><a href="/newTest">Create Test</a></li> <li><a href="/newTest">New Test</a></li>
</ul> </ul>
<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.homepage}}">{{config.engine}}</a></li>
<li><a href="{{config.framework}}">OpenBench </a></li> <li><a href="{{config.framework}}">OpenBench </a></li>
</ul> </ul>
+4 -4
View File
@@ -5,7 +5,7 @@
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<table> <table class="rawtable">
<tr> <tr>
<th>Date</th> <th>Date</th>
<th>User</th> <th>User</th>
@@ -13,9 +13,9 @@
</tr> </tr>
{% for event in events %} {% for event in events %}
<tr> <tr>
<td style='text-align:left'>{{event.creation|date:'Y-m-d H:i:s'}}</td> <td>{{event.creation|date:'Y-m-d H:i:s'}}</td>
<td style='text-align:left'>{{event.author}}</td> <td>{{event.author}}</td>
<td style='text-align:left'>{{event.data}}</td> <td>{{event.data}}</td>
</tr> </tr>
{% endfor %} {% endfor %}
<table> <table>
+13 -13
View File
@@ -4,8 +4,8 @@
{% block content %} {% block content %}
<table> <table class="datatable">
<tr><td style="background-color:white;text-align:left"><h2>Pending</h2></td></tr> <tr><td class="embedded"><h2>Pending</h2></td></tr>
{% if pending %} {% if pending %}
<tr> <tr>
<th>Creation</th> <th>Creation</th>
@@ -19,15 +19,15 @@
<tr> <tr>
<td>{{test.creation|date:'Y-m-d'}}</td> <td>{{test.creation|date:'Y-m-d'}}</td>
<td><a href="/viewUser/{{test.author}}">{{test.author}}</a></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><a href="/viewTest/{{test.id}}">{{test.dev.name}}</a></td>
<td style="text-align"><a href="{{test|gitDiffLink}}">diff</a></td> <td class="textcenter"><a href="{{test|gitDiffLink}}">diff</a></td>
{% autoescape off %} {% autoescape off %}
<td style="text-align:left;font-size:14px"><strong>{{test|statParagraph}}</strong></td> <td class="statblock"><strong>{{test|statParagraph}}</strong></td>
{% endautoescape %} {% endautoescape %}
</tr> </tr>
{% endfor %} {% 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 %} {% if active %}
<tr> <tr>
<th>Creation</th> <th>Creation</th>
@@ -41,15 +41,15 @@
<tr class="{{test|testResultColour}}"> <tr class="{{test|testResultColour}}">
<td>{{test.creation|date:'Y-m-d'}}</td> <td>{{test.creation|date:'Y-m-d'}}</td>
<td><a href="/viewUser/{{test.author}}">{{test.author}}</a></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><a href="/viewTest/{{test.id}}">{{test.dev.name}}</a></td>
<td style="text-align:left"><a href="{{test|gitDiffLink}}">diff</a></td> <td class="textcenter"><a href="{{test|gitDiffLink}}">diff</a></td>
{% autoescape off %} {% autoescape off %}
<td style="text-align:left;font-size:14px"><strong>{{test|statParagraph}}</strong></td> <td class="statblock"><strong>{{test|statParagraph}}</strong></td>
{% endautoescape %} {% endautoescape %}
</tr> </tr>
{% endfor %} {% 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 %} {% if completed %}
<tr> <tr>
<th>Creation</th> <th>Creation</th>
@@ -63,10 +63,10 @@
<tr class="{{test|testResultColour}}"> <tr class="{{test|testResultColour}}">
<td>{{test.creation|date:'Y-m-d'}}</td> <td>{{test.creation|date:'Y-m-d'}}</td>
<td><a href="/viewUser/{{test.author}}">{{test.author}}</a></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><a href="/viewTest/{{test.id}}">{{test.dev.name}}</a></td>
<td style="text-align:left"><a href="{{test|gitDiffLink}}">diff</a></td> <td class="textcenter"><a href="{{test|gitDiffLink}}">diff</a></td>
{% autoescape off %} {% autoescape off %}
<td style="text-align:left;font-size:14px"><strong>{{test|statParagraph}}</strong></td> <td class="statblock"><strong>{{test|statParagraph}}</strong></td>
{% endautoescape %} {% endautoescape %}
</tr> </tr>
{% endfor %} {% endfor %}
+4 -4
View File
@@ -7,7 +7,7 @@
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<table style="padding-top:40px"> <table class="datatable">
<tr> <tr>
<th>User</th> <th>User</th>
<th>System</th> <th>System</th>
@@ -18,10 +18,10 @@
{% for machine in machines %} {% for machine in machines %}
<tr> <tr>
<td>{{machine.owner}}</th> <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.updated|date:'Y-m-d H:i'}}</th>
<td>{{machine.threads}}</th> <td class="numeric">{{machine.threads}}</th>
<td>{{machine.mnps|twoDigitPrecision}}</th> <td class="numeric">{{machine.mnps|twoDigitPrecision}}</th>
</tr> </tr>
{% endfor %} {% endfor %}
</table> </table>
+35 -35
View File
@@ -3,57 +3,57 @@
{% block content %} {% block content %}
<form method="POST" action="/newTest/"> <form method="POST" action="/newTest/">
{% csrf_token %} {% csrf_token %}
<div style="float:left; margin-right:0px"> <div>
<label type="text"> Dev Branch </label> <label> Dev Branch </label>
<input type="text" name="devbranch" autofocus> <input name="devbranch" autofocus>
</br> </br>
<label type="text"> Dev Bench </label> <label> Dev Bench </label>
<input type="text" name="devbench"> <input name="devbench">
</br> </br>
<label type="text"> Dev Options </label> <label> Dev Options </label>
<input type="text" value="Threads={{config.threads}} Hash={{config.hash}}" name="devoptions"> <input value="Threads={{config.threads}} Hash={{config.hash}}" name="devoptions">
</br> </br>
<label type="text"> Dev Protocol </label> <label> Dev Protocol </label>
<input type="text" value="{{config.protocol}}" name="devprotocol"> <input value="{{config.protocol}}" name="devprotocol">
</br> </br>
<label type="text"> Base Branch </label> <label> Base Branch </label>
<input type="text" value="master" name="basebranch"> <input value="master" name="basebranch">
</br> </br>
<label type="text"> Base Bench </label> <label> Base Bench </label>
<input type="text" name="basebench"> <input name="basebench">
</br> </br>
<label type="text"> Base Options </label> <label> Base Options </label>
<input type="text" value="Threads={{config.threads}} Hash={{config.hash}}" name="baseoptions"> <input value="Threads={{config.threads}} Hash={{config.hash}}" name="baseoptions">
</br> </br>
<label type="text"> Base Protocol </label> <label> Base Protocol </label>
<input type="text" value="{{config.protocol}}" name="baseprotocol"> <input value="{{config.protocol}}" name="baseprotocol">
</br> </br>
<label type="text"> Source </label> <label> Source </label>
<input type="text" value="{{profile.repo}}" name="source"> <input value="{{profile.repo}}" name="source">
</br> </br>
<label type="text"> Opening Book </label> <label> Opening Book </label>
<input type="text" value="{{config.bookname}}" name="bookname"> <input value="{{config.bookname}}" name="bookname">
</br> </br>
<label type="text"> Time Control </label> <label> Time Control </label>
<input type="text" value="{{config.timecontrol}}" name="timecontrol"> <input value="{{config.timecontrol}}" name="timecontrol">
</br> </br>
<label type="text"> Priority </label> <label> Priority </label>
<input type="text" value="0" name="priority"> <input value="0" name="priority">
</br> </br>
<label type="text"> Throughput </label> <label> Throughput </label>
<input type="text" value="1000" name="throughput"> <input value="1000" name="throughput">
</br> </br>
<label type="text"> Lower Bound </label> <label> Lower Bound </label>
<input type="text" value="{{config.elolower}}" name="elolower"> <input value="{{config.elolower}}" name="elolower">
</br> </br>
<label type="text"> Upper Bound </label> <label> Upper Bound </label>
<input type="text" value="{{config.eloupper}}" name="eloupper"> <input value="{{config.eloupper}}" name="eloupper">
</br> </br>
<label type="text"> Alpha </label> <label> Alpha </label>
<input type="text" value="{{config.alpha}}" name="alpha"> <input value="{{config.alpha}}" name="alpha">
</br> </br>
<label type="text"> Beta </label> <label> Beta </label>
<input type="text" value="{{config.beta}}" name="beta"> <input value="{{config.beta}}" name="beta">
</br> </br>
<input type="submit" name="submit" value="Create Engine Test"> <input type="submit" name="submit" value="Create Engine Test">
</div> </div>
+6 -6
View File
@@ -7,14 +7,14 @@
{% block content %} {% block content %}
<form id="registerForm" method="POST" action="/register/"> <form id="registerForm" method="POST" action="/register/">
{% csrf_token %} {% csrf_token %}
<label type="text">Username</label> <label>Username</label>
<input type="text" name="username"></br> <input name="username"></br>
<label type="text">Create Password</label> <label>Create Password</label>
<input type="password" name="password1"></br> <input type="password" name="password1"></br>
<label type="text">Verify Password</label> <label>Verify Password</label>
<input type="password" name="password2"></br> <input type="password" name="password2"></br>
<label type="text">Email Address</label> <label>Email Address</label>
<input type="text" name="email"></br> <input name="email"></br>
<input type="submit" name="submit" value="Create User"> <input type="submit" name="submit" value="Create User">
</form> </form>
{% endblock %} {% endblock %}
+4 -4
View File
@@ -5,7 +5,7 @@
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<table> <table class="datatable">
<tr> <tr>
<th>Username</th> <th>Username</th>
<th>Games</th> <th>Games</th>
@@ -16,9 +16,9 @@
</tr> </tr>
{% for profile in profiles %} {% for profile in profiles %}
<tr> <tr>
<td style="text-align:left"><a href="/viewUser/{{profile.user.username}}">{{profile.user.username}}</a></td> <td><a href="/viewUser/{{profile.user.username}}">{{profile.user.username}}</a></td>
<td>{{profile.games}}</td> <td class="numeric">{{profile.games}}</td>
<td>{{profile.tests}}</td> <td class="numeric">{{profile.tests}}</td>
<td><a href="{{profile.repo}}">{{profile.repo}}</a></td> <td><a href="{{profile.repo}}">{{profile.repo}}</a></td>
<td>{{profile.enabled}}</td> <td>{{profile.enabled}}</td>
<td>{{profile.approver}}</td> <td>{{profile.approver}}</td>
+16 -11
View File
@@ -7,16 +7,21 @@
{% block content %} {% block content %}
<form method="POST" action="/editProfile/"> <form method="POST" action="/editProfile/">
{% csrf_token %} {% csrf_token %}
<label type="text">Username</label> <label>Username</label>
<input readonly value="{{profile.user.username}}" type="text" name="username"></br> <input readonly value="{{profile.user.username}}" name="username">
<label type="text">Email</label> </br>
<input value="{{profile.user.email}}" type="text" name="email"></br> <label>Email</label>
<label type="text">New Password</label> <input value="{{profile.user.email}}" name="email">
<input type="password" name="password1"></br> </br>
<label type="text">Verify Password</label> <label>New Password</label>
<input type="password" name="password2"></br> <input type="password" name="password1">
<label type="text">Source Repo</label> </br>
<input value="{{profile.repo}}" type="text" name="repo"></br> <label>Verify Password</label>
<input type="submit" name="submit" value="Edit"> <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> </form>
{% endblock %} {% endblock %}
+62 -59
View File
@@ -7,88 +7,89 @@
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<div style="float:left"> <div id="configuration">
<table> <table class="rawtable">
<tr> <tr>
<th style="text-align:left">Dev Branch</th> <td>Dev Branch</td>
<td style="text-align:left">{{test.dev.name}}</td> <td>{{test.dev.name}}</td>
</tr> </tr>
<tr> <tr>
<th style="text-align:left">Dev Bench</th> <td>Dev Bench</td>
<td style="text-align:left">{{test.dev.bench}}</td> <td>{{test.dev.bench}}</td>
</tr> </tr>
<tr> <tr>
<th style="text-align:left">Dev Options</th> <td>Dev Options</td>
<td style="text-align:left">{{test.devoptions}}</td> <td>{{test.devoptions}}</td>
</tr> </tr>
<tr> <tr>
<th style="text-align:left">Dev Protocol</th> <td>Dev Protocol</td>
<td style="text-align:left">{{test.dev.protocol}}</td> <td>{{test.dev.protocol}}</td>
</tr> </tr>
<tr> <tr>
<th style="text-align:left">Dev Sha</th> <td>Dev Sha</td>
<td style="text-align:left">{{test.dev.sha}}</td> <td>{{test.dev.sha}}</td>
</tr> </tr>
<tr> <tr>
<th style="text-align:left">Base Branch</th> <td>Base Branch</td>
<td style="text-align:left">{{test.base.name}}</td> <td>{{test.base.name}}</td>
</tr> </tr>
<tr> <tr>
<th style="text-align:left">Base Bench</th> <td>Base Bench</td>
<td style="text-align:left">{{test.base.bench}}</td> <td>{{test.base.bench}}</td>
</tr> </tr>
<tr> <tr>
<th style="text-align:left">Base Options</th> <td>Base Options</td>
<td style="text-align:left">{{test.baseoptions}}</td> <td>{{test.baseoptions}}</td>
</tr> </tr>
<tr> <tr>
<th style="text-align:left">Base Protocol</th> <td>Base Protocol</td>
<td style="text-align:left">{{test.base.protocol}}</td> <td>{{test.base.protocol}}</td>
</tr> </tr>
<tr> <tr>
<th style="text-align:left">Base Sha</th> <td>Base Sha</td>
<td style="text-align:left">{{test.base.sha}}</td> <td>{{test.base.sha}}</td>
</tr> </tr>
<tr> <tr>
<th style="text-align:left">Source Repo</th> <td>Source Repo</td>
<td style="text-align:left">{{test.source}}</td> <td>{{test.source}}</td>
</tr> </tr>
<tr> <tr>
<th style="text-align:left">Opening Book</th> <td>Opening Book</td>
<td style="text-align:left">{{test.bookname}}</td> <td>{{test.bookname}}</td>
</tr> </tr>
<tr> <tr>
<th style="text-align:left">Time Control</th> <td>Time Control</td>
<td style="text-align:left">{{test.timecontrol}}s</td> <td>{{test.timecontrol}}s</td>
</tr> </tr>
<tr> <tr>
<th style="text-align:left">Elo Bounds</th> <td>Elo Bounds</td>
<td style="text-align:left">[{{test.elolower}}, {{test.eloupper}}]</td> <td>[{{test.elolower}}, {{test.eloupper}}]</td>
</tr> </tr>
<tr> <tr>
<th style="text-align:left">SPRT Bounds</th> <td>SPRT Bounds</td>
<td style="text-align:left">({{test.lowerllr|twoDigitPrecision}}, {{test.upperllr|twoDigitPrecision}})</td> <td>({{test.lowerllr|twoDigitPrecision}}, {{test.upperllr|twoDigitPrecision}})</td>
</tr> </tr>
<tr> <tr>
<th style="text-align:left">Creation</th> <td>Creation</td>
<td style="text-align:left">{{test.creation|date:'Y-m-d H:i:s'}}</td> <td>{{test.creation|date:'Y-m-d H:i:s'}}</td>
</tr> </tr>
<tr> <tr>
<th style="text-align:left">Author</th> <td>Author</td>
<td style="text-align:left">{{test.author}}</td> <td>{{test.author}}</td>
</tr> </tr>
</table> </table>
</div> </div>
<div style="float:left;margin-left:40px">
<div id="actions">
<h2>Actions</h2> <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 %} {% 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 %} {% 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 %} {% 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> <h4>{{test.dev.name}} vs {{test.base.name}} <a href="{{test|gitDiffLink}}">DIFF</a></h4>
{% autoescape off %} {% autoescape off %}
@@ -97,39 +98,41 @@
<form method="POST" action="/editTest/{{test.id}}/"> <form method="POST" action="/editTest/{{test.id}}/">
{% csrf_token %} {% csrf_token %}
<label type="text">Priority</label> <label>Priority</label>
<input style="width: 240px" type="text" value="{{test.priority}}" name="priority"></br> <input value="{{test.priority}}" name="priority"></br>
<label type="text">Throughput</label> <label>Throughput</label>
<input style="width: 240px" type="text" value="{{test.throughput}}" name="throughput"></br> <input value="{{test.throughput}}" name="throughput"></br>
<input type="submit" name="submit" value="Modify"> <input type="submit" name="submit" value="Modify">
</form> </form>
</div> </div>
<br> <br>
<table style="padding-top:40px"> <div id="results">
<table class="datatable">
<tr> <tr>
<th>User</th> <th>User</th>
<th>Machine</th> <th>Machine</th>
<th>Updated</th> <th>Updated</th>
<th>Games</th> <th>Games</th>
<th>Wins</th> <th>Win</th>
<th>Losses</th> <th>Loss</th>
<th>Draws</th> <th>Draw</th>
<th>Crashes</th> <th>Crash</th>
<th>Time</th> <th>Time</th>
</tr> </tr>
{% for result in results %} {% for result in results %}
<tr> <tr>
<td>{{result.machine.owner}}</th> <td>{{result.machine.owner}}</td>
<td style="text-align:left">{{result.machine.osname}}</th> <td>{{result.machine.osname}}</td>
<td>{{result.updated|date:'Y-m-d H:i'}}</td> <td>{{result.updated|date:'Y-m-d H:i'}}</td>
<td>{{result.games}}</td> <td class="numeric">{{result.games}}</td>
<td>{{result.wins}}</td> <td class="numeric">{{result.wins}}</td>
<td>{{result.losses}}</td> <td class="numeric">{{result.losses}}</td>
<td>{{result.draws}}</td> <td class="numeric">{{result.draws}}</td>
<td>{{result.crashes}}</td> <td class="numeric">{{result.crashes}}</td>
<td>{{result.timeloss}}</td> <td class="numeric">{{result.timeloss}}</td>
</tr> </tr>
{% endfor %} {% endfor %}
</table> </table>
</div>
{% endblock %} {% endblock %}