Prettified the website (#76)

This commit is contained in:
jtseng20 authored and GitHub committed 2020-09-04 00:23:24 -04:00
1 parent 9fa5c92fc9
commit 191b9a150d
5 files changed
+540 -378

No files matched your search

+146
View File
@@ -0,0 +1,146 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
sodipodi:docname="logo.svg"
inkscape:version="1.0 (4035a4f, 2020-05-01)"
id="svg8"
version="1.1"
viewBox="0 0 250 250"
height="250mm"
width="250mm">
<defs
id="defs2">
<inkscape:perspective
id="perspective857"
inkscape:persp3d-origin="105 : 51.999997 : 1"
inkscape:vp_z="210 : 101.5 : 1"
inkscape:vp_y="0 : 999.99996 : 0"
inkscape:vp_x="-192.73904 : 85.416586 : 1"
sodipodi:type="inkscape:persp3d" />
<rect
id="rect853"
height="28.649736"
width="9.3152771"
y="167.60974"
x="191.06123" />
<rect
id="rect24"
height="150.35945"
width="83.140968"
y="27.845661"
x="120.10982" />
<rect
id="rect18"
height="89.834076"
width="68.721581"
y="28.873098"
x="113.84743" />
<rect
id="rect12"
height="106.64691"
width="79.874741"
y="98.018333"
x="37.502277" />
</defs>
<sodipodi:namedview
inkscape:window-maximized="1"
inkscape:window-y="27"
inkscape:window-x="67"
inkscape:window-height="1025"
inkscape:window-width="1853"
inkscape:snap-bbox="false"
fit-margin-bottom="0"
fit-margin-right="0"
fit-margin-left="0"
fit-margin-top="0"
showgrid="false"
inkscape:document-rotation="0"
inkscape:current-layer="layer1"
inkscape:document-units="mm"
inkscape:cy="232.95515"
inkscape:cx="-293.38921"
inkscape:zoom="0.35"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
borderopacity="1.0"
bordercolor="#666666"
pagecolor="#ffffff"
id="base" />
<metadata
id="metadata5">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
transform="translate(16.1122,-26.054426)"
id="layer1"
inkscape:groupmode="layer"
inkscape:label="Layer 1">
<g
transform="translate(-9.9657959,11.90565)"
id="g900">
<rect
style="fill:#a4d1ee;fill-opacity:1;stroke-width:0.264583"
id="rect873"
width="250"
height="250"
x="-6.1464038"
y="14.148776" />
<rect
style="fill:#0c5889;fill-opacity:1;stroke-width:0.264583"
id="rect875"
width="125"
height="125"
x="-6.1464038"
y="14.148776" />
<rect
y="139.14877"
x="118.85358"
height="125"
width="125"
id="rect875-3"
style="fill:#0c5889;fill-opacity:1;stroke-width:0.264583" />
</g>
<text
style="font-style:normal;font-weight:normal;font-size:10.5833px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect18);fill:#000000;fill-opacity:1;stroke:none;"
id="text16"
xml:space="preserve" />
<g
transform="matrix(1.55,0,0,1.55,-43.848331,-18.924265)"
id="g906">
<text
xml:space="preserve"
id="text10"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:88.1944px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif Bold';white-space:pre;shape-inside:url(#rect12);fill:#2793ff;fill-opacity:1;stroke:none;"
transform="translate(9.671798,-51.440428)"><tspan
x="37.501953"
y="176.04895"><tspan
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:88.1944px;font-family:sans-serif;-inkscape-font-specification:'sans-serif Bold';fill:#2793ff;fill-opacity:1">O</tspan></tspan></text>
<text
xml:space="preserve"
id="text22"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:105.833px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif Bold';white-space:pre;shape-inside:url(#rect24);fill:#5cbefe;fill-opacity:1;stroke:none;"
transform="translate(-47.822016,38.692498)"><tspan
x="120.10938"
y="121.4831"><tspan
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:105.833px;font-family:sans-serif;-inkscape-font-specification:'sans-serif Bold';fill:#5cbefe;fill-opacity:1">B</tspan></tspan></text>
</g>
<text
style="font-style:normal;font-weight:normal;font-size:10.5833px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect853);fill:#000000;fill-opacity:1;stroke:none;"
id="text851"
xml:space="preserve" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 5.1 KiB

+280 -267
View File
@@ -1,267 +1,280 @@
body { body {
font-family: "Courier New"; font-family: "Montserrat";
font-size: 18px; font-size: 18px;
background: #303030; background: #404040;
} }
a:link, a:visited, a:hover, a:active { a:link, a:visited, a:hover, a:active {
text-decoration: none; text-decoration: none;
color: #FFFFFF; color: #FFFFFF;
} }
#sidebar { #sidebar {
float: left; float: left;
margin: 16px; margin: 16px;
} }
#sidebar ul { #sidebar ul {
list-style-type: none; list-style-type: none;
padding: 0px 16px; padding: 0px 16px;
} }
#sidebar li a { #sidebar li a {
color: #A2A2A2; color: #A2A2A2;
} font-size: 14px;
}
#sidebar .header {
font-size: 16px; #sidebar .header {
color: #00AF00; font-size: 12px;
} color: #00AF00;
}
#content {
float: left; #content {
margin-top: 32px; float: left;
color: #EAEAEA; margin-top: 0;
} color: #EAEAEA;
}
#content label {
width: 128px; #content label {
padding-right: 10px; width: 128px;
text-align: right; padding-right: 10px;
display: inline-block; text-align: right;
color: #A2A2A2; display: inline-block;
font-size: 16px; color: #A2A2A2;
} font-size: 12px;
}
#content input, #content select {
background-color: #BBBBBB; #content input, #content select {
color: #000000; background-color: #BBBBBB;
padding: 8px; color: #000000;
margin: 2px 0px; padding: 8px;
display: inline-block; margin: 2px 0px;
vertical-align: middle; display: inline-block;
width: 320px; vertical-align: middle;
box-sizing: border-box; width: 320px;
-moz-box-sizing: border-box; box-sizing: border-box;
-webkit-box-sizing: border-box; -moz-box-sizing: border-box;
} -webkit-box-sizing: border-box;
}
#content button {
padding: 8px 0px; #content button {
margin: 2px 0px; padding: 8px 0px;
display: inline-block; margin: 2px 0px;
vertical-align: middle; display: inline-block;
width: 290px; vertical-align: middle;
background-color: #777777; width: 290px;
color: black; background-color: #777777;
border: none; color: black;
border-radius: 16px; border: none;
cursor: pointer; border-radius: 16px;
font-weight: bold; cursor: pointer;
} font-weight: bold;
}
#content button:hover {
background-color: #00AF00; #content button:hover {
} background-color: #00AF00;
}
#content input[type=submit] {
background-color: #00AF00; #content input[type=submit] {
color: #000000; background-color: #00AF00;
border: none; color: #000000;
border-radius: 16px; border: none;
cursor: pointer; border-radius: 16px;
width: 100%; cursor: pointer;
font-weight: bold; width: 100%;
} font-weight: bold;
}
#content input:read-only {
font-weight: bold; #content input:read-only {
} font-weight: bold;
}
#content input:-moz-read-only {
font-weight: bold; #content input:-moz-read-only {
} font-weight: bold;
}
#content #configuration {
float: left; #content #configuration {
margin-top: 20px; float: left;
} margin-top: 20px;
}
#content #actions {
margin-left: 32px; #content #actions {
float: right; margin-left: 32px;
} float: right;
margin-top: 60px;
#content #actions .anchorbutton { }
color: #000000;
padding: 8px 8px; #content #actions .anchorbutton {
margin: 0px 8px; color: #000000;
border-radius: 16px; padding: 8px 8px;
font-weight: bold; margin: 0px 8px;
text-align: center; border-radius: 16px;
display: inline-block; font-weight: bold;
width: 25%; font-family: "Courier New";
} text-align: center;
display: inline-block;
#content #actions .anchorbutton a:hover { width: 25%;
background-color: #00AF00; }
}
#content #actions .anchorbutton a:hover {
#content #actions #approvebutton { background-color: #00AF00;
background-color: #9DF779; }
}
#content #actions #approvebutton {
#content #actions #stopbutton { background-color: #9DF779;
background-color: #EEF788; }
}
#content #actions #stopbutton {
#content #actions #restartbutton { background-color: #EEF788;
background-color: #EEF788; }
}
#content #actions #restartbutton {
#content #actions #deletebutton { background-color: #EEF788;
background-color: #FA8E8E; }
}
#content #actions #deletebutton {
#content #actions .deadbutton { background-color: #FA8E8E;
background-color: #808080; }
pointer-events: none;
} #content #actions .deadbutton {
background-color: #808080;
#content #actions input { pointer-events: none;
width: 260px; }
}
#content #actions input {
#content #actions input[type=submit] { width: 260px;
width: 100%; }
}
#content #actions input[type=submit] {
#content .left-align { width: 100%;
text-align: left; }
}
#content .left-align {
#content tr:hover { text-align: left;
background-color: #00AF00; }
}
#content tr:hover {
#content th { background-color: #666666;
color: #00AF00; }
font-size: 16px;
padding: 6px 12px; #content th {
background-color: #000000; color: #00AF00;
} font-size: 16px;
font-family: "Courier New";
#content td { font-weight: 100;
padding: 6px 12px; padding: 7px 12px 5px 12px;
} background-color: #000000;
}
#content .numeric {
text-align: right; #content td {
} padding: 7px 12px 5px 12px;
font-family: "Courier New";
#content tr { }
background-color: #1A1A1A;
} #content .numeric {
text-align: right;
#content .table-spacer th { }
background: #303030;
height: 16px; #content tr {
} background-color: #2a2a2a;
}
#content .statblock {
line-height: 70%; #content .table-spacer th {
color: black; background: #404040;
background-color: #CCCCCC; height: 16px;
border-radius: 4px; }
}
#content .statblock {
#content .green { line-height: 70%;
background-color: #9DF779 color: black;
} background-color: #CCCCCC;
border-radius: 4px;
#content .yellow { }
background-color: #EEF788
} #content .green {
background-color: #9DF779
#content .red { }
background-color: #FA8E8E
} #content .yellow {
background-color: #EEF788
#content #results { }
display: inline-block;
width: inherit; #content .red {
} background-color: #FA8E8E
}
#content table {
line-height: 96%; #content #results {
} display: inline-block;
width: inherit;
#content .textcenter { }
text-align: center;
} #content table {
line-height: 96%;
#content strong { }
font-size: 14px;
} #content .textcenter {
text-align: center;
#content a { }
font-weight: bold;
} #content strong {
font-size: 14px;
#content #pagebrowse { font-weight: bold;
text-align: center; }
margin: 16px 0px 16px 0px;
} #content a:not(.TitleLink) {
font-weight: 100;
#content .page { color: #8bbad6;
text-align: center; }
display: inline-block;
padding: 8px 0px; #content h1, h2, h3 {
width: 5%; color: #a7a7a7;
background-color: #1A1A1A; text-align: center;
border-radius: 8px; }
}
#content #pagebrowse {
#content .page:hover { text-align: center;
background-color: #00AF00; margin: 16px 0px 16px 0px;
} }
#error { #content .page {
background-color: #EE7676; text-align: center;
padding: 8px; display: inline-block;
text-align: center; padding: 8px 0px;
} width: 5%;
background-color: #1A1A1A;
#content form h3 { border-radius: 8px;
margin-left: 140px; }
margin-bottom: 0px;
font-size: 16px; #content .page:hover {
color: #00AF00; background-color: #00AF00;
} }
#content form .settings-column { #error {
float: left; background-color: #EE7676;
padding-bottom: 16px; padding: 8px;
} text-align: center;
}
#content #test-mode-buttons button {
width: 49.8%; #content form h3 {
} margin-left: 140px;
margin-bottom: 0px;
#content #test-mode-buttons .left-floated { font-size: 16px;
float: left; color: #00AF00;
} }
#content #test-mode-buttons .right-floated { #content form .settings-column {
float: right; float: left;
} padding-bottom: 16px;
}
#content #test-mode-buttons button {
width: 49.8%;
}
#content #test-mode-buttons .left-floated {
float: left;
}
#content #test-mode-buttons .right-floated {
float: right;
}
+2 -2
View File
@@ -78,8 +78,8 @@ def getMachineStatus(username=None):
if username != None: if username != None:
machines = machines.filter(user__username=username) machines = machines.filter(user__username=username)
return "{0} Machines ".format(len(machines)) + \ return ": {0} Machines / ".format(len(machines)) + \
"{0} Threads ".format(sum([f.threads for f in machines])) + \ "{0} Threads / ".format(sum([f.threads for f in machines])) + \
"{0} MNPS ".format(round(sum([f.threads * f.mnps for f in machines]), 2)) "{0} MNPS ".format(round(sum([f.threads * f.mnps for f in machines]), 2))
def getPaging(content, page, url, pagelen=25): def getPaging(content, page, url, pagelen=25):
+72 -69
View File
@@ -1,69 +1,72 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
{% load static %} {% load static %}
<head> <head>
<link rel="stylesheet" href="{% static 'style.css' %}"> <link rel="stylesheet" href="{% static 'style.css' %}">
<title>OpenBench</title> <link rel="icon" type="image/svg+xml" href="{% static 'logo.svg' %}">
<script> <link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,200;0,400;1,100&amp;display=swap" rel="stylesheet">
{% block scripts %} <title>OpenBench</title>
{% endblock %} <script>
</script> {% block scripts %}
</head> {% endblock %}
</script>
<body> </head>
<!-- Views may return an error message --> <body>
{% if error %}
<div id="error"> <!-- Views may return an error message -->
<pre>{{error}}</pre> {% if error %}
</div> <div id="error">
{% endif %} <pre>{{error}}</pre>
</div>
<div id="sidebar"> {% endif %}
<ul> <div id="sidebar">
<li class="header">ADMIN</li>
{% if user.is_authenticated %} <ul>
<li><a href="/logout/">Logout</a></li> <li class="header">ADMIN</li>
<li><a href="/profile/">Profile</a></li> {% if user.is_authenticated %}
{% else %} <li><a href="/logout/">Logout</a></li>
<li><a href="/login">Login </a></li> <li><a href="/profile/">Profile</a></li>
<li><a href="/register">Register</a></li> {% else %}
{% endif %} <li><a href="/login">Login </a></li>
</ul> <li><a href="/register">Register</a></li>
{% endif %}
<ul> </ul>
<li class="header">TESTS</li>
<li><a href="/index">Index</a></li> <ul>
<li><a href="/greens">Greens</a></li> <li class="header">TESTS</li>
<li><a href="/search">Search</a></li> <li><a href="/index">Index</a></li>
<li><a href="/newTest">New Test</a></li> <li><a href="/greens">Greens</a></li>
</ul> <li><a href="/search">Search</a></li>
<li><a href="/newTest">New Test</a></li>
<ul> </ul>
<li class="header">INFO</li>
<li><a href="/users">Users</a></li> <ul>
<li><a href="/events">Events</a></li> <li class="header">INFO</li>
<li><a href="/machines">Machines</a></li> <li><a href="/users">Users</a></li>
<li><a href="{{config.framework}}">OpenBench</a></li> <li><a href="/events">Events</a></li>
</ul> <li><a href="/machines">Machines</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" %} <ul>
<li><a href="{{data.source}}">{{engine}}</a></li> <li class="header">ENGINES</li>
{% endfor %} {% for engine, data in config.engines.items|dictsort:"0.lower" %}
</ul> <li><a href="{{data.source}}">{{engine}}</a></li>
{% endfor %}
</div> </ul>
<div id="content"> </div>
{% block content %}
{% endblock %} <div id="content">
</div> <h2> <a class = "TitleLink" href = "http://chess.grantnet.us/"> OpenBench Testing Framework </a> </h2>
{% block content %}
</body> {% endblock %}
</html> </div>
</body>
</html>
+40 -40
View File
@@ -1,40 +1,40 @@
{% extends "OpenBench/base.html" %} {% extends "OpenBench/base.html" %}
{% block content %} {% block content %}
<table class="datatable"> <table class="datatable">
<!-- Only show Pending tests for the front page of the Index --> <!-- Only show Pending tests for the front page of the Index -->
{% if paging.page == 1 %} {% if paging.page == 1 %}
<!-- Currently Pending tests (Waiting to be approved) --> <!-- Currently Pending tests (Waiting to be approved) -->
{% if pending %} {% if pending %}
<tr><th colspan='6'>Pending</th></tr> <tr><th colspan='6'>Pending</th></tr>
{% for test in pending %} {% for test in pending %}
{% include "OpenBench/Blocks/testsummary.html" %} {% include "OpenBench/Blocks/testsummary.html" %}
{% endfor %} {% endfor %}
<tr class="table-spacer"><th></th></tr> <tr class="table-spacer"><th></th></tr>
{% endif %} {% endif %}
<!-- Currently Running tests (Waiting to be completed) --> <!-- Currently Running tests (Waiting to be completed) -->
{% if active %} {% if active %}
<tr><th colspan='6'>Active {{status}}</th></tr> <tr><th colspan='6'>Active {{status}}</th></tr>
{% for test in active %} {% for test in active %}
{% include "OpenBench/Blocks/testsummary.html" %} {% include "OpenBench/Blocks/testsummary.html" %}
{% endfor %} {% endfor %}
<tr class="table-spacer"><th></th></tr> <tr class="table-spacer"><th></th></tr>
{% endif %} {% endif %}
{% endif %} {% endif %}
<!-- Tests which have already finished --> <!-- Tests which have already finished -->
<tr><th colspan='6'>Finished</th></tr> <tr><th colspan='6'>Finished</th></tr>
{% for test in completed %} {% for test in completed %}
{% include "OpenBench/Blocks/testsummary.html" %} {% include "OpenBench/Blocks/testsummary.html" %}
{% endfor %} {% endfor %}
</table> </table>
{% include "OpenBench/Blocks/pagebrowser.html" %} {% include "OpenBench/Blocks/pagebrowser.html" %}
{% endblock %} {% endblock %}