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