diff --git a/OpenBench/static/logo.svg b/OpenBench/static/logo.svg new file mode 100644 index 0000000..8f67dbe --- /dev/null +++ b/OpenBench/static/logo.svg @@ -0,0 +1,146 @@ + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + O + B + + + + diff --git a/OpenBench/static/style.css b/OpenBench/static/style.css index 866cec5..bf4f4fc 100644 --- a/OpenBench/static/style.css +++ b/OpenBench/static/style.css @@ -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; +} diff --git a/OpenBench/utils.py b/OpenBench/utils.py index 18ade1f..fc89a9d 100644 --- a/OpenBench/utils.py +++ b/OpenBench/utils.py @@ -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): diff --git a/Templates/OpenBench/base.html b/Templates/OpenBench/base.html index 028a90a..a96fa0b 100644 --- a/Templates/OpenBench/base.html +++ b/Templates/OpenBench/base.html @@ -1,69 +1,72 @@ - - - - - {% load static %} - - - - OpenBench - - - - - - - {% if error %} -
-
{{error}}
-
- {% endif %} - - - -
- {% block content %} - {% endblock %} -
- - - + + + + + {% load static %} + + + + + + OpenBench + + + + + + + {% if error %} +
+
{{error}}
+
+ {% endif %} + + + +
+

OpenBench Testing Framework

+ {% block content %} + {% endblock %} +
+ + + diff --git a/Templates/OpenBench/index.html b/Templates/OpenBench/index.html index 1235ef3..b07dd3b 100644 --- a/Templates/OpenBench/index.html +++ b/Templates/OpenBench/index.html @@ -1,40 +1,40 @@ -{% extends "OpenBench/base.html" %} - -{% block content %} - - - - - {% if paging.page == 1 %} - - - {% if pending %} - - {% for test in pending %} - {% include "OpenBench/Blocks/testsummary.html" %} - {% endfor %} - - {% endif %} - - - {% if active %} - - {% for test in active %} - {% include "OpenBench/Blocks/testsummary.html" %} - {% endfor %} - - {% endif %} - - {% endif %} - - - - {% for test in completed %} - {% include "OpenBench/Blocks/testsummary.html" %} - {% endfor %} - -
Pending
Active {{status}}
Finished
- - {% include "OpenBench/Blocks/pagebrowser.html" %} - -{% endblock %} \ No newline at end of file +{% extends "OpenBench/base.html" %} + +{% block content %} + + + + + {% if paging.page == 1 %} + + + {% if pending %} + + {% for test in pending %} + {% include "OpenBench/Blocks/testsummary.html" %} + {% endfor %} + + {% endif %} + + + {% if active %} + + {% for test in active %} + {% include "OpenBench/Blocks/testsummary.html" %} + {% endfor %} + + {% endif %} + + {% endif %} + + + + {% for test in completed %} + {% include "OpenBench/Blocks/testsummary.html" %} + {% endfor %} + +
Pending
Active {{status}}
Finished
+ + {% include "OpenBench/Blocks/pagebrowser.html" %} + +{% endblock %}