1 parent
a8e977da57
commit
21f83a93fe
19 files changed
+1425
-582
No files matched your search
@@ -0,0 +1,315 @@
|
||||
/* Width classes */
|
||||
.w-25 {
|
||||
width: 25%;
|
||||
}
|
||||
|
||||
.w-50 {
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
.w-75 {
|
||||
width: 75%;
|
||||
}
|
||||
|
||||
.w-100 {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.mw-25 {
|
||||
max-width: 25%;
|
||||
}
|
||||
|
||||
.mw-50 {
|
||||
max-width: 50%;
|
||||
}
|
||||
|
||||
.mw-75 {
|
||||
max-width: 75%;
|
||||
}
|
||||
|
||||
.mw-100 {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/* Margin and Padding classes */
|
||||
.mt-1 {
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
|
||||
.mt-2 {
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.mt-3 {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.mt-4 {
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
|
||||
.mt-5 {
|
||||
margin-top: 3rem;
|
||||
}
|
||||
|
||||
.mb-1 {
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.mb-2 {
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.mb-3 {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.mb-4 {
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.mb-5 {
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
|
||||
.ml-1 {
|
||||
margin-left: 0.25rem;
|
||||
}
|
||||
|
||||
.ml-2 {
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
|
||||
.ml-3 {
|
||||
margin-left: 1rem;
|
||||
}
|
||||
|
||||
.ml-4 {
|
||||
margin-left: 1.5rem;
|
||||
}
|
||||
|
||||
.ml-5 {
|
||||
margin-left: 3rem;
|
||||
}
|
||||
|
||||
.mr-1 {
|
||||
margin-right: 0.25rem;
|
||||
}
|
||||
|
||||
.mr-2 {
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
|
||||
.mr-3 {
|
||||
margin-right: 1rem;
|
||||
}
|
||||
|
||||
.mr-4 {
|
||||
margin-right: 1.5rem;
|
||||
}
|
||||
|
||||
.mr-5 {
|
||||
margin-right: 3rem;
|
||||
}
|
||||
|
||||
.mx-1 {
|
||||
margin-left: 0.25rem;
|
||||
margin-right: 0.25rem;
|
||||
}
|
||||
|
||||
.mx-2 {
|
||||
margin-left: 0.5rem;
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
|
||||
.mx-3 {
|
||||
margin-left: 1rem;
|
||||
margin-right: 1rem;
|
||||
}
|
||||
|
||||
.mx-4 {
|
||||
margin-left: 1.5rem;
|
||||
margin-right: 1.5rem;
|
||||
}
|
||||
|
||||
.mx-5 {
|
||||
margin-left: 3rem;
|
||||
margin-right: 3rem;
|
||||
}
|
||||
|
||||
.my-1 {
|
||||
margin-top: 0.25rem;
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.my-2 {
|
||||
margin-top: 0.5rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.my-3 {
|
||||
margin-top: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.my-4 {
|
||||
margin-top: 1.5rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.my-5 {
|
||||
margin-top: 3rem;
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
|
||||
.p-1{
|
||||
padding: 0.25rem;
|
||||
}
|
||||
|
||||
.p-2{
|
||||
padding: 0.5rem;
|
||||
}
|
||||
|
||||
.p-3{
|
||||
padding: 0.75rem;
|
||||
}
|
||||
|
||||
.p-4{
|
||||
padding: 1.0rem;
|
||||
}
|
||||
|
||||
.p-5{
|
||||
padding: 1.25rem;
|
||||
}
|
||||
|
||||
.pt-1 {
|
||||
padding-top: 0.25rem;
|
||||
}
|
||||
|
||||
.pt-2 {
|
||||
padding-top: 0.5rem;
|
||||
}
|
||||
|
||||
.pt-3 {
|
||||
padding-top: 1rem;
|
||||
}
|
||||
|
||||
.pt-4 {
|
||||
padding-top: 1.5rem;
|
||||
}
|
||||
|
||||
.pt-5 {
|
||||
padding-top: 3rem;
|
||||
}
|
||||
|
||||
.pb-1 {
|
||||
padding-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.pb-2 {
|
||||
padding-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.pb-3 {
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
|
||||
.pb-4 {
|
||||
padding-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.pb-5 {
|
||||
padding-bottom: 3rem;
|
||||
}
|
||||
|
||||
.pl-1 {
|
||||
padding-left: 0.25rem;
|
||||
}
|
||||
|
||||
.pl-2 {
|
||||
padding-left: 0.5rem;
|
||||
}
|
||||
|
||||
.pl-3 {
|
||||
padding-left: 1rem;
|
||||
}
|
||||
|
||||
.pl-4 {
|
||||
padding-left: 1.5rem;
|
||||
}
|
||||
|
||||
.pl-5 {
|
||||
padding-left: 3rem;
|
||||
}
|
||||
|
||||
.pr-1 {
|
||||
padding-right: 0.25rem;
|
||||
}
|
||||
|
||||
.pr-2 {
|
||||
padding-right: 0.5rem;
|
||||
}
|
||||
|
||||
.pr-3 {
|
||||
padding-right: 1rem;
|
||||
}
|
||||
|
||||
.pr-4 {
|
||||
padding-right: 1.5rem;
|
||||
}
|
||||
|
||||
.pr-5 {
|
||||
padding-right: 3rem;
|
||||
}
|
||||
|
||||
.px-1 {
|
||||
padding-left: 0.25rem;
|
||||
padding-right: 0.25rem;
|
||||
}
|
||||
|
||||
.px-2 {
|
||||
padding-left: 0.5rem;
|
||||
padding-right: 0.5rem;
|
||||
}
|
||||
|
||||
.px-3 {
|
||||
padding-left: 1rem;
|
||||
padding-right: 1rem;
|
||||
}
|
||||
|
||||
.px-4 {
|
||||
padding-left: 1.5rem;
|
||||
padding-right: 1.5rem;
|
||||
}
|
||||
|
||||
.px-5 {
|
||||
padding-left: 3rem;
|
||||
padding-right: 3rem;
|
||||
}
|
||||
|
||||
.py-1 {
|
||||
padding-top: 0.25rem;
|
||||
padding-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.py-2 {
|
||||
padding-top: 0.5rem;
|
||||
padding-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.py-3 {
|
||||
padding-top: 1rem;
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
|
||||
.py-4 {
|
||||
padding-top: 1.5rem;
|
||||
padding-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.py-5 {
|
||||
padding-top: 3rem;
|
||||
padding-bottom: 3rem;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,307 @@
|
||||
body {
|
||||
font-family: "Courier Prime";
|
||||
font-size: 18px;
|
||||
background: #303030;
|
||||
}
|
||||
|
||||
a:link, a:visited, a:hover, a:active {
|
||||
text-decoration: none;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
#sidebar {
|
||||
float: left;
|
||||
margin: 16px;
|
||||
margin-top: 60px;
|
||||
}
|
||||
|
||||
#sidebar ul {
|
||||
list-style-type: none;
|
||||
padding: 0px 16px 0px 8px;
|
||||
line-height: 1.75;
|
||||
}
|
||||
|
||||
#sidebar li a {
|
||||
color: #A2A2A2;
|
||||
padding: 0px 16px;
|
||||
font-size: 1.0rem;
|
||||
}
|
||||
|
||||
#sidebar li:hover {
|
||||
background-color: #666666;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
#sidebar .header {
|
||||
color: #00AF00;
|
||||
padding: 0px 16px;
|
||||
font-size: 1.0rem;
|
||||
}
|
||||
|
||||
#sidebar .header:hover {
|
||||
background-color: #303030;
|
||||
}
|
||||
|
||||
#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: 14px;
|
||||
}
|
||||
|
||||
#content input, #content select {
|
||||
background-color: #BBBBBB;
|
||||
color: #000000;
|
||||
padding: 10px;
|
||||
margin: 1px 0px;
|
||||
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 h4 {
|
||||
color: #A2A2A2;
|
||||
font-size: 15px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#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: #666666;
|
||||
}
|
||||
|
||||
#content th {
|
||||
color: #00AF00;
|
||||
font-size: 16px;
|
||||
font-weight: 100;
|
||||
padding: 7px 12px 5px 12px;
|
||||
background-color: #000000;
|
||||
}
|
||||
|
||||
#content td {
|
||||
padding: 7px 12px 5px 12px;
|
||||
}
|
||||
|
||||
#content .numeric {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#content tr {
|
||||
background-color: #202020;
|
||||
}
|
||||
|
||||
#content .table-spacer th {
|
||||
background: #303030;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
#content .statblock {
|
||||
line-height: 70%;
|
||||
color: black;
|
||||
background-color: #CCCCCC;
|
||||
border-radius: 4px;
|
||||
font-family: "Courier New";
|
||||
}
|
||||
|
||||
#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 a.redlink {
|
||||
color: #FF4D4D;
|
||||
}
|
||||
|
||||
#content a.unstarred {
|
||||
color: #808080;
|
||||
}
|
||||
|
||||
#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: 110px;
|
||||
margin-bottom: 2px;
|
||||
font-size: 16px;
|
||||
font-weight: normal;
|
||||
color: #00AF00;
|
||||
}
|
||||
|
||||
#content h4 a {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
#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;
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
|
||||
#content .form {
|
||||
|
||||
}
|
||||
|
||||
#content .form .col {
|
||||
display: inline-block;
|
||||
width: 50%;
|
||||
white-space: normal;
|
||||
margin-left: 0;
|
||||
box-sizing: border-box;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
#content .form .col-full {
|
||||
display: block;
|
||||
width: 100%;
|
||||
white-space: normal;
|
||||
margin-left: 0;
|
||||
box-sizing: border-box;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
/* Styles for screen widths less than 600px */
|
||||
@media (max-width: 1024px) {
|
||||
#content .form .col {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
#content .form h3 {
|
||||
font-weight: 700;
|
||||
width: 100%;
|
||||
display: inline-block;
|
||||
box-sizing: border-box;
|
||||
padding-left: 2rem;
|
||||
text-align: left;
|
||||
color: var(--color-font3)
|
||||
}
|
||||
|
||||
#content .form .row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
#content .row label {
|
||||
width: 25%;
|
||||
min-width: 128px;
|
||||
margin-right: 1rem;
|
||||
text-align: right;
|
||||
font-weight: 600;
|
||||
color: var(--color-font2)
|
||||
}
|
||||
|
||||
#content .row input,
|
||||
#content .row select {
|
||||
flex-grow: 1;
|
||||
min-width: 0;
|
||||
border: 1px solid var(--color3);
|
||||
border-radius: 4px;
|
||||
padding: 6px;
|
||||
background-color: var(--color2);
|
||||
color: var(--color-font2)
|
||||
}
|
||||
#content .row input[type="file"]{
|
||||
padding: 2px 2px;
|
||||
}
|
||||
|
||||
#content .row input:focus,
|
||||
#content .row select:focus {
|
||||
outline: none;
|
||||
border-color: var(--color3);
|
||||
box-shadow: 0 0 0 3px rgba(77, 144, 254, 0.25);
|
||||
background-color: var(--color2);
|
||||
color: var(--color-font2)
|
||||
}
|
||||
|
||||
#content .row input[type="file"]::file-selector-button {
|
||||
background-color: var(--color3);
|
||||
border: 1px solid var(--color2);
|
||||
border-radius: 4px;
|
||||
padding: 4px 6px;
|
||||
color: var(--color-font2);
|
||||
cursor: pointer;
|
||||
transition: background-color 0.3s, border-color 0.3s;
|
||||
}
|
||||
|
||||
#content .row input[type="file"]::file-selector-button:hover {
|
||||
background-color: rgba(77, 144, 254, 0.8);
|
||||
border-color: var(--color2);
|
||||
}
|
||||
|
||||
#content .form .flex {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
max-width: 100%;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
#content .form .flex button{
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
+226
-250
@@ -1,225 +1,276 @@
|
||||
body {
|
||||
font-family: "Courier Prime";
|
||||
font-size: 18px;
|
||||
background: #303030;
|
||||
}
|
||||
|
||||
a:link, a:visited, a:hover, a:active {
|
||||
text-decoration: none;
|
||||
color: #FFFFFF;
|
||||
color: #8BBAD6;
|
||||
}
|
||||
|
||||
body {
|
||||
--color1: #222222;
|
||||
--color2: #2D2D2D;
|
||||
--color3: #3B3B3B;
|
||||
|
||||
--color-font1: #DBDEE1;
|
||||
--color-font2: #949BA4;
|
||||
--color-font3: #008F11;
|
||||
|
||||
background-color: var(--color1);
|
||||
|
||||
font-size: 16px;
|
||||
font-family: "Courier Prime";
|
||||
display:flex;
|
||||
}
|
||||
|
||||
body, html, main{
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
min-width: 100%;
|
||||
max-width: 100%;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
#sidebar {
|
||||
float: left;
|
||||
margin: 16px;
|
||||
margin-top: 60px;
|
||||
/*float: left;*/
|
||||
padding: 60px 16px 16px 16px;
|
||||
flex-basis: calc(min(300px, max(200px, 15%)));
|
||||
}
|
||||
|
||||
#content-parent{
|
||||
flex-grow: 1;
|
||||
justify-content: left;
|
||||
height: 100%;
|
||||
|
||||
box-sizing: border-box;
|
||||
padding-left: 2rem;
|
||||
padding-right: 2rem;
|
||||
}
|
||||
|
||||
#content{
|
||||
max-width: calc(min(100%,1200px));
|
||||
width: 100%;
|
||||
white-space: nowrap;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
|
||||
/* Styles for screen widths less than 600px */
|
||||
@media (max-width: 599px) {
|
||||
#sidebar {
|
||||
flex-basis: 100%;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
#content-parent {
|
||||
height: auto;
|
||||
flex-grow: 0;
|
||||
flex-basis: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#sidebar ul {
|
||||
list-style-type: none;
|
||||
padding: 0px 0px 0px 8px;
|
||||
line-height: 1.50;
|
||||
padding: 0px 16px 0px 8px;
|
||||
line-height: 1.75;
|
||||
}
|
||||
|
||||
#sidebar li {
|
||||
padding: 2px 16px;
|
||||
font-size: 1.0rem;
|
||||
border-radius: 4px;
|
||||
transition: background-color 0.2s ease-in-out;
|
||||
}
|
||||
|
||||
#sidebar li a {
|
||||
color: #A2A2A2;
|
||||
padding: 0px 16px;
|
||||
font-size: 16px;
|
||||
color: var(--color-font2);
|
||||
}
|
||||
|
||||
#sidebar li:hover {
|
||||
background-color: #666666;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
#sidebar .header {
|
||||
color: #00AF00;
|
||||
padding: 0px 16px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
#sidebar .header:hover {
|
||||
background-color: #303030;
|
||||
}
|
||||
|
||||
#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: 14px;
|
||||
}
|
||||
|
||||
#content input, #content select {
|
||||
|
||||
background-color: #BBBBBB;
|
||||
color: #000000;
|
||||
padding: 10px;
|
||||
margin: 1px 0px;
|
||||
width: 340px;
|
||||
|
||||
border: 2px solid black;
|
||||
border-radius: 6px;
|
||||
|
||||
-moz-box-sizing: border-box;
|
||||
-webkit-box-sizing: border-box;
|
||||
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 h4 {
|
||||
color: #A2A2A2;
|
||||
font-size: 15px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#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;
|
||||
#sidebar .header {
|
||||
color: var(--color-font3);
|
||||
font-size: 1.1rem;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
#content #actions input {
|
||||
width: 260px;
|
||||
#sidebar hr {
|
||||
border: 1px var(--color2) solid;
|
||||
}
|
||||
|
||||
#content #actions input[type=submit] {
|
||||
width: 100%;
|
||||
/* Table Striping, with overriding for the Table Header */
|
||||
|
||||
#content .stripes tr:nth-child(odd):not(.table-header) {
|
||||
background-color: var(--color1);
|
||||
}
|
||||
|
||||
#content .left-align {
|
||||
text-align: left;
|
||||
#content .stripes tr:nth-child(even):not(.table-header) {
|
||||
background-color: var(--color2);
|
||||
}
|
||||
|
||||
#content tr:hover {
|
||||
background-color: #666666;
|
||||
#content .stripes th {
|
||||
background-color: black;
|
||||
}
|
||||
|
||||
#content th {
|
||||
color: #00AF00;
|
||||
font-size: 16px;
|
||||
font-weight: 100;
|
||||
padding: 7px 12px 5px 12px;
|
||||
background-color: #000000;
|
||||
/* Tables that have hoverable table rows */
|
||||
|
||||
#content .hoverable tr:nth-child(odd):hover:not(.table-header) {
|
||||
background-color: #323232;
|
||||
}
|
||||
|
||||
#content .hoverable tr:nth-child(even):hover:not(.table-header) {
|
||||
background-color: #323232;
|
||||
}
|
||||
|
||||
#content .hoverable tr:hover{
|
||||
background-color: var(--color1);
|
||||
}
|
||||
|
||||
/* Tables that are too long can wrap words*/
|
||||
|
||||
#content .wrappable td{
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
/* Table Headers in General */
|
||||
|
||||
#content .table-header th:first-child {
|
||||
border-top-left-radius: 12px;
|
||||
}
|
||||
|
||||
#content .table-header th:last-child {
|
||||
border-top-right-radius: 12px;
|
||||
}
|
||||
|
||||
#content .table-header th {
|
||||
color: var(--color-font3);
|
||||
font-weight: 400;
|
||||
background-color: #171717;
|
||||
}
|
||||
|
||||
/* Table Spacer for chaining Tables as a hack */
|
||||
|
||||
#content .table-spacer th {
|
||||
background-color: var(--color1);
|
||||
height: 1rem;
|
||||
}
|
||||
|
||||
/* Generic Table CSS for all Tables */
|
||||
|
||||
#content table {
|
||||
line-height: 96%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
#content td {
|
||||
padding: 7px 12px 5px 12px;
|
||||
color: var(--color-font2);
|
||||
border-bottom: 1px #444444 solid;
|
||||
}
|
||||
|
||||
#content .numeric {
|
||||
text-align: right;
|
||||
#content th, #content td {
|
||||
padding: 10px 12px 6px 12px;
|
||||
}
|
||||
|
||||
#content tr {
|
||||
background-color: #202020;
|
||||
#content .anchorbutton {
|
||||
border-radius: 4px;
|
||||
padding: 8px;
|
||||
border-color: transparent;
|
||||
color: var(--color-font1);
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
transition: background-color 0.3s ease;
|
||||
}
|
||||
|
||||
#content .table-spacer th {
|
||||
background: #303030;
|
||||
height: 16px;
|
||||
#content .btn-blue {
|
||||
background-color: #1C2D40;
|
||||
}
|
||||
|
||||
#content .btn-yellow {
|
||||
background-color: #7A4E09;
|
||||
}
|
||||
|
||||
#content .btn-red {
|
||||
background-color: #74261E;
|
||||
}
|
||||
|
||||
#content .btn-disabled {
|
||||
background-color: var(--color3);
|
||||
}
|
||||
|
||||
#content .btn-blue:hover {
|
||||
background-color: #2E3F57;
|
||||
}
|
||||
|
||||
#content .btn-yellow:hover {
|
||||
background-color: #9B6B0F;
|
||||
}
|
||||
|
||||
#content .btn-red:hover {
|
||||
background-color: #8E3D28;
|
||||
}
|
||||
|
||||
#content .btn-disabled:hover {
|
||||
background-color: var(--color3);
|
||||
cursor: not-allowed;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
#content .copy-button {
|
||||
color: var(--color-font2);
|
||||
transition: color 0.2s ease-in-out;
|
||||
}
|
||||
|
||||
#content .copy-button:hover {
|
||||
color: var(--color-font3);
|
||||
}
|
||||
|
||||
/* Short StatBlock to show SPRT and Test Results */
|
||||
|
||||
#content .statblock {
|
||||
line-height: 70%;
|
||||
font-size: 13px;
|
||||
color: black;
|
||||
line-height: 96%;
|
||||
background-color: #CCCCCC;
|
||||
border-radius: 4px;
|
||||
font-family: "Courier New";
|
||||
border-radius: 4px;
|
||||
padding: 8px 10px;
|
||||
}
|
||||
|
||||
#content .green {
|
||||
background-color: #9DF779
|
||||
#content .statblock-green {
|
||||
background-color: #76D576;
|
||||
}
|
||||
|
||||
#content .yellow {
|
||||
background-color: #EEF788
|
||||
#content .statblock-yellow {
|
||||
background-color: #EFF891
|
||||
}
|
||||
|
||||
#content .red {
|
||||
background-color: #FA8E8E
|
||||
#content .statblock-red {
|
||||
background-color: #FA9696
|
||||
}
|
||||
|
||||
/* Long StatBlock which we can copy */
|
||||
|
||||
#content .long-statblock {
|
||||
background-color: var(--color3);
|
||||
color: var(--color-font2);
|
||||
border-radius: 4px;
|
||||
padding: 0.50rem 0.75rem;
|
||||
}
|
||||
|
||||
/* Test Views */
|
||||
|
||||
#content #config {
|
||||
float: left;
|
||||
}
|
||||
|
||||
#content #actions {
|
||||
float: left;
|
||||
}
|
||||
|
||||
#content #results {
|
||||
@@ -227,89 +278,14 @@ a:link, a:visited, a:hover, a:active {
|
||||
width: inherit;
|
||||
}
|
||||
|
||||
#content table {
|
||||
line-height: 96%;
|
||||
#content .test-config {
|
||||
font-size: 1.0rem;
|
||||
}
|
||||
|
||||
#content .textcenter {
|
||||
text-align: center;
|
||||
#content .test-config .td-label {
|
||||
color: var(--color-font1);
|
||||
}
|
||||
|
||||
#content strong {
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#content a:not(.TitleLink) {
|
||||
font-weight: 100;
|
||||
color: #8BBAD6;
|
||||
}
|
||||
|
||||
#content a.redlink {
|
||||
color: #FF4D4D;
|
||||
}
|
||||
|
||||
#content a.unstarred {
|
||||
color: #808080;
|
||||
}
|
||||
|
||||
#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 pre {
|
||||
background-color: #EE7676;
|
||||
padding: 6px;
|
||||
margin: 0px;
|
||||
text-align: center;
|
||||
font-family: "Courier Prime";
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
#content form h3 {
|
||||
margin-left: 110px;
|
||||
margin-bottom: 2px;
|
||||
font-size: 16px;
|
||||
font-weight: normal;
|
||||
color: #00AF00;
|
||||
}
|
||||
|
||||
#content h4 a {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
#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;
|
||||
}
|
||||
@@ -108,21 +108,22 @@ def longStatBlock(test):
|
||||
|
||||
if test.test_mode == 'SPRT':
|
||||
|
||||
lowerllr = twoDigitPrecision(test.lowerllr)
|
||||
currentllr = twoDigitPrecision(test.currentllr)
|
||||
upperllr = twoDigitPrecision(test.upperllr)
|
||||
elolower = twoDigitPrecision(test.elolower)
|
||||
eloupper = twoDigitPrecision(test.eloupper)
|
||||
lowerllr = twoDigitPrecision(test.lowerllr)
|
||||
currentllr = twoDigitPrecision(test.currentllr)
|
||||
upperllr = twoDigitPrecision(test.upperllr)
|
||||
elolower = twoDigitPrecision(test.elolower)
|
||||
eloupper = twoDigitPrecision(test.eloupper)
|
||||
timecontrol = test.timecontrol + ['s', '']['=' in test.timecontrol]
|
||||
|
||||
return 'ELO | {0} +- {1} (95%)\n'.format(elo, error) \
|
||||
+ 'SPRT | {0}s Threads={1} Hash={2}MB\n'.format(test.timecontrol, threads, hash) \
|
||||
+ 'SPRT | {0} Threads={1} Hash={2}MB\n'.format(timecontrol, threads, hash) \
|
||||
+ 'LLR | {0} ({1}, {2}) [{3}, {4}]\n'.format(currentllr, lowerllr, upperllr, elolower, eloupper) \
|
||||
+ 'GAMES | N: {0} W: {1} L: {2} D: {3}'.format(test.games, test.wins, test.losses, test.draws)
|
||||
|
||||
if test.test_mode == 'GAMES':
|
||||
|
||||
return 'ELO | {0} +- {1} (95%)\n'.format(elo, error) \
|
||||
+ 'CONF | {0}s Threads={1} Hash={2}MB\n'.format(test.timecontrol, threads, hash) \
|
||||
+ 'CONF | {0} Threads={1} Hash={2}MB\n'.format(timecontrol, threads, hash) \
|
||||
+ 'GAMES | N: {0} W: {1} L: {2} D: {3}'.format(test.games, test.wins, test.losses, test.draws)
|
||||
|
||||
def testResultColour(test):
|
||||
|
||||
@@ -7,5 +7,5 @@
|
||||
{% else %} <td><a href="/test/{{test.id}}">{{test|prettyDevName}}</a></td> {% endif %}
|
||||
<td class="textcenter"><a href="{{test|gitDiffLink}}">diff</a></td>
|
||||
<td>{{test.timecontrol}}</td>
|
||||
<td class='statblock {{test|testResultColour}}'><strong>{{test|shortStatBlock|linebreaksbr}}</strong></td>
|
||||
<td class='statblock statblock-{{test|testResultColour}}'><strong>{{test|shortStatBlock|linebreaksbr}}</strong></td>
|
||||
</tr>
|
||||
@@ -6,6 +6,8 @@
|
||||
|
||||
<head>
|
||||
<link rel="stylesheet" href="{% static 'style.css' %}">
|
||||
<link rel="stylesheet" href="{% static 'base.css' %}">
|
||||
<link rel="stylesheet" href="{% static 'form.css' %}">
|
||||
<link rel="icon" type="image/svg+xml" href="{% static 'logo.svg' %}">
|
||||
<link href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css' rel='stylesheet'>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,200;0,400;1,100&display=swap" rel="stylesheet">
|
||||
@@ -42,7 +44,6 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<!-- Views may return an error message -->
|
||||
{% if error %}
|
||||
<div id="error">
|
||||
@@ -111,11 +112,14 @@
|
||||
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
<h2> <a class="TitleLink" href="/">OpenBench Testing Framework</a></h2>
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
<div id="content-parent">
|
||||
<div id="content">
|
||||
<h2> <a class="TitleLink" href="/">OpenBench Testing Framework</a></h2>
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -5,7 +5,7 @@
|
||||
{% load static %}
|
||||
|
||||
<head>
|
||||
<link rel="stylesheet" href="{% static 'style.css' %}">
|
||||
<link rel="stylesheet" href="{% static 'ethereal.css' %}">
|
||||
<link rel="icon" type="image/svg+xml" href="{% static 'logo.svg' %}">
|
||||
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
|
||||
{% block content %}
|
||||
|
||||
<table>
|
||||
<table class="hoverable">
|
||||
|
||||
<tr>
|
||||
<tr class="table-header">
|
||||
<th>Date</th>
|
||||
<th>User</th>
|
||||
<th>Test</th>
|
||||
|
||||
@@ -2,42 +2,42 @@
|
||||
|
||||
{% block content %}
|
||||
|
||||
<table class="datatable">
|
||||
<table class="test-list stripes hoverable">
|
||||
|
||||
<!-- 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>
|
||||
<tr class="table-header"><th colspan='6'>Pending</th></tr>
|
||||
{% for test in pending %}
|
||||
{% include "OpenBench/Blocks/testsummary.html" %}
|
||||
{% endfor %}
|
||||
<tr class="table-spacer"><th></th></tr>
|
||||
<tr class="table-spacer"><th colspan='6'></th></tr>
|
||||
{% endif %}
|
||||
|
||||
<!-- Currently Awaiting tests (Waiting for Artifacts) -->
|
||||
{% if awaiting %}
|
||||
<tr><th colspan='6'>Awaiting Artifacts</th></tr>
|
||||
<tr class="table-header"><th colspan='6'>Awaiting Artifacts</th></tr>
|
||||
{% for test in awaiting %}
|
||||
{% include "OpenBench/Blocks/testsummary.html" %}
|
||||
{% endfor %}
|
||||
<tr class="table-spacer"><th></th></tr>
|
||||
<tr class="table-spacer"><th colspan='6'></th></tr>
|
||||
{% endif %}
|
||||
|
||||
<!-- Currently Running tests (Waiting to be completed) -->
|
||||
{% if active %}
|
||||
<tr><th colspan='6'>Active {{status}}</th></tr>
|
||||
<tr class="table-header"><th colspan='6'>Active {{status}}</th></tr>
|
||||
{% for test in active %}
|
||||
{% include "OpenBench/Blocks/testsummary.html" %}
|
||||
{% endfor %}
|
||||
<tr class="table-spacer"><th></th></tr>
|
||||
<tr class="table-spacer"><th colspan='6'></th></tr>
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
<!-- Tests which have already finished -->
|
||||
<tr><th colspan='6'>Finished</th></tr>
|
||||
<tr class="table-header"><th colspan='6'>Finished</th></tr>
|
||||
{% for test in completed %}
|
||||
{% include "OpenBench/Blocks/testsummary.html" %}
|
||||
{% endfor %}
|
||||
|
||||
@@ -4,9 +4,17 @@
|
||||
|
||||
<form method="POST" action="/login/">
|
||||
{% csrf_token %}
|
||||
<label type="text">Username</label> <input type="text" name="username"><br>
|
||||
<label type="text">Password</label> <input type="password" name="password"><br>
|
||||
<input type="submit" name="submit" value="Login">
|
||||
<div class="form">
|
||||
<div class="col">
|
||||
<div class="row">
|
||||
<label type="text">Username</label> <input type="text" name="username"><br>
|
||||
</div>
|
||||
<div class="row">
|
||||
<label type="text">Password</label> <input type="password" name="password"><br>
|
||||
</div>
|
||||
<input type="submit" name="submit" value="Login" class="anchorbutton btn-blue w-100">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
||||
@@ -4,9 +4,9 @@
|
||||
|
||||
{% block content %}
|
||||
|
||||
<table>
|
||||
<table class="hoverable">
|
||||
|
||||
<tr>
|
||||
<tr class="table-header">
|
||||
<th>#</th>
|
||||
<th>User</th>
|
||||
<th>System</th>
|
||||
|
||||
@@ -55,9 +55,9 @@
|
||||
|
||||
{% block content %}
|
||||
|
||||
<table id="network-table">
|
||||
<table id="network-table" class="hoverable">
|
||||
|
||||
<tr>
|
||||
<tr class="table-header">
|
||||
<th onclick=sort_networks("default")></th>
|
||||
<th onclick=sort_networks("engine")>Engine</th>
|
||||
<th onclick=sort_networks("author")>Uploader</th>
|
||||
|
||||
+219
-154
@@ -12,128 +12,132 @@
|
||||
|
||||
function set_test_type() {
|
||||
|
||||
//// When the test mode is set or changed, run this.
|
||||
//// Sets the bounds, confidence intervals, and max games fields.
|
||||
//// When the test mode is set or changed, run this.
|
||||
//// Sets the bounds, confidence intervals, and max games fields.
|
||||
|
||||
var selectA = document.getElementById("test_mode");
|
||||
var mode = selectA.options[selectA.selectedIndex].value;
|
||||
var selectA = document.getElementById("test_mode");
|
||||
var mode = selectA.options[selectA.selectedIndex].value;
|
||||
|
||||
var selectB = document.getElementById("enginename");
|
||||
var engine = selectB.options[selectB.selectedIndex].value;
|
||||
var selectB = document.getElementById("enginename");
|
||||
var engine = selectB.options[selectB.selectedIndex].value;
|
||||
|
||||
if (mode == "SPRT") {
|
||||
document.getElementById("test_bounds" ).value = engines[engine].bounds
|
||||
document.getElementById("test_confidence").value = "{{config.tests.confidence}}";
|
||||
document.getElementById("test_max_games" ).value = "N/A";
|
||||
}
|
||||
if (mode == "SPRT") {
|
||||
document.getElementById("test_bounds" ).value = engines[engine].bounds
|
||||
document.getElementById("test_confidence").value = "{{ config.tests.confidence }}";
|
||||
document.getElementById("test_max_games" ).value = "N/A";
|
||||
}
|
||||
|
||||
if (mode == "GAMES") {
|
||||
document.getElementById("test_bounds" ).value = "N/A";
|
||||
document.getElementById("test_confidence").value = "N/A";
|
||||
document.getElementById("test_max_games" ).value = "{{config.tests.max_games}}";
|
||||
}
|
||||
if (mode == "GAMES") {
|
||||
document.getElementById("test_bounds" ).value = "N/A";
|
||||
document.getElementById("test_confidence").value = "N/A";
|
||||
document.getElementById("test_max_games" ).value = "{{ config.tests.max_games }}";
|
||||
}
|
||||
}
|
||||
|
||||
function set_test_mode(mode_str) {
|
||||
|
||||
var selection = document.getElementById("enginename");
|
||||
var engine = selection.options[selection.selectedIndex].value;
|
||||
var mode = engines[engine].testmodes[mode_str];
|
||||
var selection = document.getElementById("enginename");
|
||||
var engine = selection.options[selection.selectedIndex].value;
|
||||
var mode = engines[engine].testmodes[mode_str];
|
||||
|
||||
document.getElementById("report_rate" ).value = mode["report_rate"] || 8;
|
||||
document.getElementById("workload_size").value = mode["workload_size"] || 32;
|
||||
document.getElementById("devoptions" ).value = mode["options"] || "Threads=1 Hash=8";
|
||||
document.getElementById("baseoptions" ).value = mode["options"] || "Threads=1 Hash=8";
|
||||
document.getElementById("timecontrol" ).value = mode["timecontrol"] || "10.0+0.1";
|
||||
document.getElementById("bookname" ).value = mode["book"] || engines[engine].book;
|
||||
document.getElementById("report_rate" ).value = mode["report_rate"] || 8;
|
||||
document.getElementById("workload_size").value = mode["workload_size"] || 32;
|
||||
document.getElementById("devoptions" ).value = mode["options"] || "Threads=1 Hash=8";
|
||||
document.getElementById("baseoptions" ).value = mode["options"] || "Threads=1 Hash=8";
|
||||
document.getElementById("timecontrol" ).value = mode["timecontrol"] || "10.0+0.1";
|
||||
document.getElementById("bookname" ).value = mode["book"] || engines[engine].book;
|
||||
|
||||
if (mode["bounds"] != null) {
|
||||
document.getElementById("test_mode").value = "SPRT"; set_test_type();
|
||||
document.getElementById("test_bounds").value = mode["bounds"];
|
||||
}
|
||||
if (mode["bounds"] != null) {
|
||||
document.getElementById("test_mode").value = "SPRT"; set_test_type();
|
||||
document.getElementById("test_bounds").value = mode["bounds"];
|
||||
}
|
||||
|
||||
if (mode["games"] != null) {
|
||||
document.getElementById("test_mode").value = "GAMES"; set_test_type();
|
||||
document.getElementById("test_max_games").value = mode["games"];
|
||||
}
|
||||
if (mode["games"] != null) {
|
||||
document.getElementById("test_mode").value = "GAMES"; set_test_type();
|
||||
document.getElementById("test_max_games").value = mode["games"];
|
||||
}
|
||||
|
||||
if (mode["bounds"] == null && mode["games"] == null) {
|
||||
document.getElementById("test_mode").value = "SPRT"; set_test_type();
|
||||
}
|
||||
if (mode["bounds"] == null && mode["games"] == null) {
|
||||
document.getElementById("test_mode").value = "SPRT"; set_test_type();
|
||||
}
|
||||
}
|
||||
|
||||
function set_engine(engine) {
|
||||
|
||||
//// Creates a button to setup test modes, as specififed in the Engine's
|
||||
//// entry in config.py. Also sets the opening book, and default base branch
|
||||
//// based on the same config entry. Finally, creates a list of all uploaded
|
||||
//// Network files that can be selected. The default Network is set as such,
|
||||
//// if it exists. In all cases, a blank Network is included in the options.
|
||||
//// Creates a button to setup test modes, as specififed in the Engine's
|
||||
//// entry in config.py. Also sets the opening book, and default base branch
|
||||
//// based on the same config entry. Finally, creates a list of all uploaded
|
||||
//// Network files that can be selected. The default Network is set as such,
|
||||
//// if it exists. In all cases, a blank Network is included in the options.
|
||||
|
||||
document.getElementById("enginename").value = engine;
|
||||
document.getElementById("enginename").value = engine;
|
||||
|
||||
var button_div = document.getElementById("test-mode-buttons");
|
||||
while (button_div.hasChildNodes())
|
||||
button_div.removeChild(button_div.lastChild);
|
||||
var button_div = document.getElementById("test-mode-buttons");
|
||||
while (button_div.hasChildNodes())
|
||||
button_div.removeChild(button_div.lastChild);
|
||||
|
||||
var index = 0;
|
||||
for (let mode in engines[engine].testmodes) {
|
||||
btn = document.createElement('button')
|
||||
btn.innerHTML = mode;
|
||||
btn.onclick = function() { set_test_mode(mode); };
|
||||
btn.class = (++index % 2) ? "left-floated" : "right-floated";
|
||||
button_div.append(btn);
|
||||
}
|
||||
var index = 0;
|
||||
for (let mode in engines[engine].testmodes) {
|
||||
btn = document.createElement('button')
|
||||
btn.innerHTML = mode;
|
||||
btn.onclick = function() { set_test_mode(mode); };
|
||||
{# btn.class = (++index % 2) ? "left-floated" : "right-floated";#}
|
||||
btn.classList.add("anchorbutton")
|
||||
btn.classList.add("btn-yellow")
|
||||
btn.classList.add("mr-2")
|
||||
btn.classList.add("mt-2")
|
||||
button_div.append(btn);
|
||||
}
|
||||
|
||||
var devnet = document.getElementById("devnetwork");
|
||||
var basenet = document.getElementById("basenetwork");
|
||||
var hasdefault = false;
|
||||
var devnet = document.getElementById("devnetwork");
|
||||
var basenet = document.getElementById("basenetwork");
|
||||
var hasdefault = false;
|
||||
|
||||
while (devnet.length) devnet.remove(0);
|
||||
while (basenet.length) basenet.remove(0);
|
||||
while (devnet.length) devnet.remove(0);
|
||||
while (basenet.length) basenet.remove(0);
|
||||
|
||||
for (const network of networks) {
|
||||
for (const network of networks) {
|
||||
|
||||
if (network.engine !== engine) continue;
|
||||
if (network.engine !== engine) continue;
|
||||
|
||||
var devopt = document.createElement("option");
|
||||
var baseopt = document.createElement("option");
|
||||
var devopt = document.createElement("option");
|
||||
var baseopt = document.createElement("option");
|
||||
|
||||
devopt.text = baseopt.text = network.name;
|
||||
devopt.value = baseopt.value = network.sha256;
|
||||
devopt.text = baseopt.text = network.name;
|
||||
devopt.value = baseopt.value = network.sha256;
|
||||
|
||||
devopt.selected = network.default;
|
||||
baseopt.selected = network.default;
|
||||
devnet.add(devopt); basenet.add(baseopt);
|
||||
devopt.selected = network.default;
|
||||
baseopt.selected = network.default;
|
||||
devnet.add(devopt); basenet.add(baseopt);
|
||||
|
||||
hasdefault = hasdefault || network.default;
|
||||
}
|
||||
hasdefault = hasdefault || network.default;
|
||||
}
|
||||
|
||||
{
|
||||
var devopt = document.createElement("option");
|
||||
var baseopt = document.createElement("option");
|
||||
{
|
||||
var devopt = document.createElement("option");
|
||||
var baseopt = document.createElement("option");
|
||||
|
||||
devopt.text = baseopt.text = "None";
|
||||
devopt.value = baseopt.value = "";
|
||||
devopt.text = baseopt.text = "None";
|
||||
devopt.value = baseopt.value = "";
|
||||
|
||||
devopt.selected = !hasdefault; devnet.add(devopt);
|
||||
baseopt.selected = !hasdefault; basenet.add(baseopt);
|
||||
}
|
||||
devopt.selected = !hasdefault; devnet.add(devopt);
|
||||
baseopt.selected = !hasdefault; basenet.add(baseopt);
|
||||
}
|
||||
|
||||
document.getElementById("basebranch").value = engines[engine].base;
|
||||
document.getElementById("bookname" ).value = engines[engine].book;
|
||||
document.getElementById("win_adj" ).value = engines[engine].win_adj;
|
||||
document.getElementById("draw_adj" ).value = engines[engine].draw_adj;
|
||||
document.getElementById("basebranch").value = engines[engine].base;
|
||||
document.getElementById("bookname" ).value = engines[engine].book;
|
||||
document.getElementById("win_adj" ).value = engines[engine].win_adj;
|
||||
document.getElementById("draw_adj" ).value = engines[engine].draw_adj;
|
||||
|
||||
set_test_mode("STC");
|
||||
set_test_mode("STC");
|
||||
}
|
||||
|
||||
document.addEventListener(
|
||||
'DOMContentLoaded', function () {
|
||||
set_test_type();
|
||||
set_engine("{{profile.engine}}");
|
||||
set_test_mode("STC");
|
||||
}, false
|
||||
'DOMContentLoaded', function () {
|
||||
set_test_type();
|
||||
set_engine("{{ profile.engine }}");
|
||||
set_test_mode("STC");
|
||||
}, false
|
||||
);
|
||||
|
||||
{% endblock %}
|
||||
@@ -142,82 +146,143 @@
|
||||
|
||||
<form method="POST" action="/newTest/">
|
||||
{% csrf_token %}
|
||||
<div class="settings-column">
|
||||
|
||||
<h3> Engine </h3>
|
||||
<label> Engine </label> <select id="enginename" name="enginename" onchange="set_engine(value);">
|
||||
{% for engine in config.engines %}
|
||||
<option value="{{engine}}">{{engine}}</option>
|
||||
{% endfor %}
|
||||
</select><br>
|
||||
<label> Source </label> <input value="{{profile.repo}}" name="source"><br>
|
||||
|
||||
<div class="form w-100">
|
||||
<div class="col">
|
||||
|
||||
<h3> Dev Settings </h3>
|
||||
<label> Dev Bench </label> <input name="devbench"><br>
|
||||
<label> Dev Branch </label> <input name="devbranch" autofocus><br>
|
||||
<label> Dev Options </label> <input id="devoptions" name="devoptions"><br>
|
||||
<label> Dev Network </label> <select id="devnetwork" name="devnetwork"></select><br>
|
||||
<h3> Engine </h3>
|
||||
<div class="row">
|
||||
<label> Engine </label> <select id="enginename" name="enginename" onchange="set_engine(value);">
|
||||
{% for engine in config.engines %}
|
||||
<option value="{{ engine }}">{{ engine }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<h3> Base Settings </h3>
|
||||
<label> Base Bench </label> <input name="basebench"><br>
|
||||
<label> Base Branch </label> <input id="basebranch" name="basebranch"><br>
|
||||
<label> Base Options </label> <input id="baseoptions" name="baseoptions"><br>
|
||||
<label> Base Network </label> <select id="basenetwork" name="basenetwork"></select><br>
|
||||
<div class="row">
|
||||
<label> Source </label> <input value="{{ profile.repo }}" name="source">
|
||||
</div>
|
||||
|
||||
<h3> Workload Settings </h3>
|
||||
<label> Report Rate </label> <input id="report_rate" name="report_rate"><br>
|
||||
<label> Workload Size </label> <input id="workload_size" name="workload_size"<br>
|
||||
<h3> Dev Settings </h3>
|
||||
<div class="row">
|
||||
<label> Dev Bench </label> <input name="devbench">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Dev Branch </label> <input name="devbranch" autofocus>
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Dev Options </label> <input id="devoptions" name="devoptions">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Dev Network </label> <select id="devnetwork" name="devnetwork"></select>
|
||||
</div>
|
||||
|
||||
<h3> Base Settings </h3>
|
||||
|
||||
<div class="row">
|
||||
<label> Base Bench </label> <input name="basebench">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Base Branch </label> <input id="basebranch" name="basebranch">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Base Options </label> <input id="baseoptions" name="baseoptions">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Base Network </label> <select id="basenetwork" name="basenetwork"></select>
|
||||
</div>
|
||||
|
||||
|
||||
<h3> Workload Settings </h3>
|
||||
<div class="row">
|
||||
<label> Report Rate </label> <input id="report_rate" name="report_rate">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Workload Size </label> <input id="workload_size" name="workload_size">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col">
|
||||
|
||||
<h3> Game Settings </h3>
|
||||
|
||||
<div class="row">
|
||||
<label> Book </label> <select id="bookname" name="bookname">
|
||||
{% for name, data in config.books.items %}
|
||||
<option value="{{ name }}">{{ name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Time </label> <input id="timecontrol" name="timecontrol">
|
||||
</div>
|
||||
|
||||
|
||||
<h3> Test Settings </h3>
|
||||
<div class="row">
|
||||
<label> Test Mode </label>
|
||||
<select onchange='set_test_type()' id="test_mode" name="test_mode">
|
||||
<option selected value="SPRT"> SPRT</option>
|
||||
<option value="GAMES"> Fixed Games</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Bounds </label> <input id="test_bounds" name="bounds">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Confidence </label> <input id="test_confidence" name="confidence">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Max Games </label> <input id="test_max_games" name="max_games">
|
||||
</div>
|
||||
|
||||
|
||||
<h3> General Settings </h3>
|
||||
<div class="row">
|
||||
<label> Priority </label> <input value="0" name="priority">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Throughput </label> <input value="1000" id="throughput" , name="throughput">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Syzygy WDL </label> <select name="syzygy_wdl">
|
||||
<option value="OPTIONAL"> Optional</option>
|
||||
<option value="REQUIRED"> Required</option>
|
||||
<option selected value="DISABLED"> Disabled</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<h3> Adjudication Settings </h3>
|
||||
<div class="row">
|
||||
<label> Syzygy ADJ. </label>
|
||||
<select name="syzygy_adj">
|
||||
<option selected value="OPTIONAL"> Optional</option>
|
||||
<option value="REQUIRED"> Required</option>
|
||||
<option value="DISABLED"> Disabled</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Win ADJ. </label> <input id="win_adj" name="win_adj">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Draw ADJ. </label> <input id="draw_adj" name="draw_adj">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="settings-column">
|
||||
|
||||
<h3> Game Settings </h3>
|
||||
<label> Book </label> <select id="bookname" name="bookname">
|
||||
{% for name, data in config.books.items %}
|
||||
<option value="{{name}}">{{name}}</option>
|
||||
{% endfor %}
|
||||
</select><br>
|
||||
<label> Time </label> <input id="timecontrol" name="timecontrol"><br>
|
||||
|
||||
<h3> Test Settings </h3>
|
||||
<label> Test Mode </label> <select onchange='set_test_type()' id="test_mode" name="test_mode">
|
||||
<option selected value="SPRT"> SPRT </option>
|
||||
<option value="GAMES"> Fixed Games </option>
|
||||
</select><br>
|
||||
<label> Bounds </label> <input id="test_bounds" name="bounds"><br>
|
||||
<label> Confidence </label> <input id="test_confidence" name="confidence"><br>
|
||||
<label> Max Games </label> <input id="test_max_games" name="max_games"><br>
|
||||
|
||||
<h3> General Settings </h3>
|
||||
<label> Priority </label> <input value="0" name="priority"><br>
|
||||
<label> Throughput </label> <input value="1000" id="throughput", name="throughput"><br>
|
||||
|
||||
<label> Syzygy WDL </label> <select name="syzygy_wdl">
|
||||
<option value="OPTIONAL"> Optional </option>
|
||||
<option value="REQUIRED"> Required </option>
|
||||
<option selected value="DISABLED"> Disabled </option>
|
||||
</select><br>
|
||||
|
||||
<h3> Adjudication Settings </h3>
|
||||
|
||||
<label> Syzygy ADJ. </label> <select name="syzygy_adj">
|
||||
<option selected value="OPTIONAL"> Optional </option>
|
||||
<option value="REQUIRED"> Required </option>
|
||||
<option value="DISABLED"> Disabled </option>
|
||||
</select><br>
|
||||
|
||||
<label> Win ADJ. </label> <input id="win_adj" name="win_adj"><br>
|
||||
<label> Draw ADJ. </label> <input id="draw_adj" name="draw_adj"><br>
|
||||
|
||||
</div>
|
||||
|
||||
<br><input type="submit" name="submit" value="Create Engine Test">
|
||||
|
||||
<input type="submit" class="anchorbutton btn-blue mt-3 ml-3" name="submit" value="Create Engine Test">
|
||||
</form>
|
||||
|
||||
<div id="test-mode-buttons">
|
||||
<!-- Generated based on the selected Engine -->
|
||||
<div class="form">
|
||||
<div class="col-full">
|
||||
<div class="row flex">
|
||||
<div class="ml-3" id="test-mode-buttons">
|
||||
<!-- Generated based on the selected Engine -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{% endblock %}
|
||||
@@ -4,29 +4,44 @@
|
||||
|
||||
<form method="POST" action="/profile/">
|
||||
{% csrf_token %}
|
||||
<div class="form">
|
||||
<div class="col">
|
||||
<div class="row">
|
||||
<label>Username</label><input readonly value="{{profile.user.username}}">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label>Email</label><input value="{{profile.user.email}}" name="email">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label>Source Repo</label><input value="{{profile.repo}}" name="repo">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label>New Password</label><input type="password" name="password1">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label>New Password</label><input type="password" name="password2">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label>Engine</label>
|
||||
<select id="engine" name="engine">
|
||||
{% for engine in config.engines %}
|
||||
{% if profile.engine == engine %}
|
||||
<option selected value="{{engine}}">{{engine}}</option>
|
||||
{% else %}
|
||||
<option value="{{engine}}">{{engine}}</option>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% if not profile.engine %}
|
||||
<option selected value=""></option>
|
||||
{% endif %}
|
||||
</select>
|
||||
</div>
|
||||
<input class="anchorbutton btn-blue w-100" type="submit" value="Update Profile">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Profile information. Everything may be changed but the Username -->
|
||||
<label>Username</label><input readonly value="{{profile.user.username}}"><br>
|
||||
<label>Email</label><input value="{{profile.user.email}}" name="email"><br>
|
||||
<label>Source Repo</label><input value="{{profile.repo}}" name="repo"><br>
|
||||
<label>New Password</label><input type="password" name="password1"><br>
|
||||
<label>New Password</label><input type="password" name="password2"><br>
|
||||
|
||||
<!-- User's have a default engine. Select the default, otherwise show an empty line -->
|
||||
<label>Engine</label> <select id="engine" name="engine">
|
||||
{% for engine in config.engines %}
|
||||
{% if profile.engine == engine %}
|
||||
<option selected value="{{engine}}">{{engine}}</option>
|
||||
{% else %}
|
||||
<option value="{{engine}}">{{engine}}</option>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% if not profile.engine %}
|
||||
<option selected value=""></option>
|
||||
{% endif %}
|
||||
</select><br>
|
||||
|
||||
<input type="submit" value="Update Profile">
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
@@ -23,54 +23,66 @@
|
||||
<form method="POST" action="/search/">
|
||||
{% csrf_token %}
|
||||
|
||||
<label> Keywords </label> <input name="keywords"><br>
|
||||
<label> Author </label> <input name="author"><br>
|
||||
|
||||
<label> Engine </label>
|
||||
<select id="engine" name="engine">
|
||||
<option selected value="">ALL</option>
|
||||
{% for name, data in config.engines.items %}
|
||||
<option value="{{name}}">{{name}}</option>
|
||||
{% endfor %}
|
||||
</select><br>
|
||||
|
||||
<label> Show Greens </label>
|
||||
<select name="showgreens">
|
||||
<option selected value="True">True</option>
|
||||
<option value="False">False</option>
|
||||
</select><br>
|
||||
|
||||
<label> Show Yellows </label>
|
||||
<select name="showyellows">
|
||||
<option selected value="True">True</option>
|
||||
<option value="False">False</option>
|
||||
</select><br>
|
||||
|
||||
<label> Show Reds </label>
|
||||
<select name="showreds">
|
||||
<option selected value="True">True</option>
|
||||
<option value="False">False</option>
|
||||
</select><br>
|
||||
|
||||
<label> Show Stopped </label>
|
||||
<select name="showunfinished">
|
||||
<option value="True">True</option>
|
||||
<option selected value="False">False</option>
|
||||
</select><br>
|
||||
|
||||
<label> Show Deleted </label>
|
||||
<select name="showdeleted">
|
||||
<option value="True">True</option>
|
||||
<option selected value="False">False</option>
|
||||
</select><br>
|
||||
|
||||
<input type="submit" name="submit" value="Search Tests">
|
||||
|
||||
<div class="form">
|
||||
<div class="col">
|
||||
<div class="row">
|
||||
<label>Keywords</label> <input name="keywords"><br>
|
||||
</div>
|
||||
<div class="row">
|
||||
<label>Author</label> <input name="author"><br>
|
||||
</div>
|
||||
<div class="row">
|
||||
<label>Engine</label>
|
||||
<select id="engine" name="engine">
|
||||
<option selected value="">ALL</option>
|
||||
{% for name, data in config.engines.items %}
|
||||
<option value="{{name}}">{{name}}</option>
|
||||
{% endfor %}
|
||||
</select><br>
|
||||
</div>
|
||||
<div class="row">
|
||||
<label>Show Greens</label>
|
||||
<select name="showgreens">
|
||||
<option selected value="True">True</option>
|
||||
<option value="False">False</option>
|
||||
</select><br>
|
||||
</div>
|
||||
<div class="row">
|
||||
<label>Show Yellows</label>
|
||||
<select name="showyellows">
|
||||
<option selected value="True">True</option>
|
||||
<option value="False">False</option>
|
||||
</select><br>
|
||||
</div>
|
||||
<div class="row">
|
||||
<label>Show Reds</label>
|
||||
<select name="showreds">
|
||||
<option selected value="True">True</option>
|
||||
<option value="False">False</option>
|
||||
</select><br>
|
||||
</div>
|
||||
<div class="row">
|
||||
<label>Show Stopped</label>
|
||||
<select name="showunfinished">
|
||||
<option value="True">True</option>
|
||||
<option selected value="False">False</option>
|
||||
</select><br>
|
||||
</div>
|
||||
<div class="row">
|
||||
<label>Show Deleted</label>
|
||||
<select name="showdeleted">
|
||||
<option value="True">True</option>
|
||||
<option selected value="False">False</option>
|
||||
</select><br>
|
||||
</div>
|
||||
<input type="submit" class="anchorbutton btn-blue w-100" name="submit" value="Search Tests">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
{% endif %}
|
||||
|
||||
<table class="datatable">
|
||||
<table class="test-list stripes hoverable">
|
||||
{% for test in tests %}
|
||||
{% include "OpenBench/Blocks/testsummary.html" %}
|
||||
{% endfor %}
|
||||
|
||||
@@ -6,43 +6,54 @@
|
||||
{% load static %}
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
|
||||
function copy_statblock() {
|
||||
var text = document.getElementById("long-statblock").innerHTML;
|
||||
text = text.replace(/<br>/g, "\n");
|
||||
text += "\n" + window.location.href;
|
||||
navigator.clipboard.writeText(text);
|
||||
}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div id="configuration">
|
||||
<table class="datatable left-align">
|
||||
<tr><th>Author</th><td>{{test.author|capfirst}}</td></tr>
|
||||
<tr><th>Creation</th><td class="timestamp">{{test.creation|date:'U'}}</td></tr>
|
||||
<tr><th>Engine</th><td>{{test.engine}}</td></tr>
|
||||
<tr><th>Dev Branch</th><td>{{test.dev.name|prettyName}}</td></tr>
|
||||
<tr><th>Dev Bench</th><td>{{test.dev.bench}}</td></tr>
|
||||
<tr><th>Dev Options</th><td>{{test.devoptions}}</td></tr>
|
||||
<tr><th>Dev Sha</th><td>{{test.dev.sha}}</td></tr>
|
||||
<div id="config" style="display: block; overflow-x: auto;">
|
||||
<table class="test-config left-align wrappable" style="table-layout: auto; width: 100%;">
|
||||
<tr><td class="td-label">Author</td><td>{{test.author|capfirst}}</td></tr>
|
||||
<tr><td class="td-label">Creation</td><td class="timestamp">{{test.creation|date:'U'}}</td></tr>
|
||||
<tr><td class="td-label">Engine</td><td>{{test.engine}}</td></tr>
|
||||
<tr><td class="td-label">Dev Branch</td><td>{{test.dev.name|prettyName}}</td></tr>
|
||||
<tr><td class="td-label">Dev Bench</td><td>{{test.dev.bench}}</td></tr>
|
||||
<tr><td class="td-label">Dev Options</td><td>{{test.devoptions}}</td></tr>
|
||||
<tr><td class="td-label">Dev Sha</td><td>{{test.dev.sha}}</td></tr>
|
||||
{% if test.devnetwork %}
|
||||
<tr>
|
||||
<th>Dev Network</th>
|
||||
<td class="td-label">Dev Network</td>
|
||||
<td><a href="{{test.devnetwork|resolveNetworkURL}}">{{test.devnetname}}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
<tr><th>Base Branch</th><td>{{test.base.name|prettyName}}</td></tr>
|
||||
<tr><th>Base Bench</th><td>{{test.base.bench}}</td></tr>
|
||||
<tr><th>Base Options</th><td>{{test.baseoptions}}</td></tr>
|
||||
<tr><th>Base Sha</th><td>{{test.base.sha}}</td></tr>
|
||||
<tr><td class="td-label">Base Branch</td><td>{{test.base.name|prettyName}}</td></tr>
|
||||
<tr><td class="td-label">Base Bench</td><td>{{test.base.bench}}</td></tr>
|
||||
<tr><td class="td-label">Base Options</td><td>{{test.baseoptions}}</td></tr>
|
||||
<tr><td class="td-label">Base Sha</td><td>{{test.base.sha}}</td></tr>
|
||||
{% if test.basenetwork %}
|
||||
<tr>
|
||||
<th>Base Network</th>
|
||||
<td class="td-label">Base Network</td>
|
||||
<td><a href="{{test.basenetwork|resolveNetworkURL}}">{{test.basenetname}}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
<tr><th>Source Repo</th><td><a href="{{test.source}}">{{test.source}}</a></td></tr>
|
||||
<tr><th>Opening Book</th><td><a href="{{config.framework}}/raw/master/Books/">{{test.bookname}}</a></td></tr>
|
||||
<tr><th>Syzygy WDL</th><td>{{test.syzygy_wdl}}</td></tr>
|
||||
<tr><th>Syzygy ADJ.</th><td>{{test.syzygy_adj}}</td></tr>
|
||||
<tr><th>Win ADJ.</th><td>{{test.win_adj}}</td></tr>
|
||||
<tr><th>Draw ADJ.</th><td>{{test.draw_adj}}</td></tr>
|
||||
<tr><td class="td-label">Source Repo</td><td><a href="{{test.source}}">{{test.source}}</a></td></tr>
|
||||
<tr><td class="td-label">Opening Book</td><td><a href="{{config.framework}}raw/master/Books/{{test.bookname}}.zip">{{test.bookname}}</a></td></tr>
|
||||
<tr><td class="td-label">Syzygy WDL</td><td>{{test.syzygy_wdl}}</td></tr>
|
||||
<tr><td class="td-label">Syzygy ADJ.</td><td>{{test.syzygy_adj}}</td></tr>
|
||||
<tr><td class="td-label">Win ADJ.</td><td>{{test.win_adj}}</td></tr>
|
||||
<tr><td class="td-label">Draw ADJ.</td><td>{{test.draw_adj}}</td></tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="actions">
|
||||
<div id="actions" class="ml-3">
|
||||
|
||||
<!-- Dev vs Base [Git Diff Link] -->
|
||||
<h4><a href="{{test|gitDiffLink}}">
|
||||
@@ -51,69 +62,76 @@
|
||||
|
||||
<!-- Approve Button: For Admins, or Cross-approvers -->
|
||||
{% if not test.approved and profile.approver and profile.user.username != test.author %}
|
||||
<a class="anchorbutton" id="approvebutton" href="/test/{{test.id}}/APPROVE">Approve</a>
|
||||
<a class="w-25 mr-2 anchorbutton btn-blue" href="/test/{{test.id}}/APPROVE">Approve</a>
|
||||
{% elif not test.approved and request.user.is_superuser %}
|
||||
<a class="anchorbutton" id="approvebutton" href="/test/{{test.id}}/APPROVE">Approve</a>
|
||||
<a class="w-25 mr-2 anchorbutton btn-blue" href="/test/{{test.id}}/APPROVE">Approve</a>
|
||||
{% else %}
|
||||
<a class="anchorbutton deadbutton">Approve</a>
|
||||
<a class="w-25 mr-2 anchorbutton btn-disabled">Approve</a>
|
||||
{% endif %}
|
||||
|
||||
<!-- Restart Button: For Approvers or Test Authors of finished tests -->
|
||||
{% if test.finished and profile.approver %}
|
||||
<a class="anchorbutton" id="stopbutton" href="/test/{{test.id}}/RESTART">Restart</a>
|
||||
<a class="w-25 mr-2 anchorbutton btn-yellow" href="/test/{{test.id}}/RESTART">Restart</a>
|
||||
{% elif test.finished and profile.user.username == test.author %}
|
||||
<a class="anchorbutton" id="stopbutton" href="/test/{{test.id}}/RESTART">Restart</a>
|
||||
<a class="w-25 mr-2 anchorbutton btn-yellow" href="/test/{{test.id}}/RESTART">Restart</a>
|
||||
{% elif test.finished %}
|
||||
<a class="anchorbutton deadbutton">Restart</a>
|
||||
<a class="w-25 mr-2 anchorbutton btn-disabled">Restart</a>
|
||||
{% endif %}
|
||||
|
||||
<!-- Stop Button: For Approvers or Test Authors of active tests -->
|
||||
{% if not test.finished and profile.approver %}
|
||||
<a class="anchorbutton" id="restartbutton" href="/test/{{test.id}}/STOP">Stop</a>
|
||||
<a class="w-25 mr-2 anchorbutton btn-yellow" href="/test/{{test.id}}/STOP">Stop</a>
|
||||
{% elif not test.finished and profile.user.username == test.author %}
|
||||
<a class="anchorbutton" id="restartbutton" href="/test/{{test.id}}/STOP">Stop</a>
|
||||
<a class="w-25 mr-2 anchorbutton btn-yellow" href="/test/{{test.id}}/STOP">Stop</a>
|
||||
{% elif not test.finished %}
|
||||
<a class="anchorbutton deadbutton">Stop</a>
|
||||
<a class="w-25 mr-2 anchorbutton btn-disabled">Stop</a>
|
||||
{% endif %}
|
||||
|
||||
<!-- Delete Button: For Approvers or Test Authors -->
|
||||
{% if profile.approver or profile.user.username == test.author %}
|
||||
<a class="anchorbutton" id="deletebutton" href="/test/{{test.id}}/DELETE">Delete</a>
|
||||
<a class="w-25 mr-2 anchorbutton btn-red" href="/test/{{test.id}}/DELETE">Delete</a>
|
||||
{% else %}
|
||||
<a class="anchorbutton deadbutton">Delete</a>
|
||||
<a class="w-25 mr-2 anchorbutton btn-disabled">Delete</a>
|
||||
{% endif %}
|
||||
|
||||
<a class="copy-button" onclick="copy_statblock()">
|
||||
<i class="fa-regular fa-clone copy-button"></i>
|
||||
</a>
|
||||
|
||||
<!-- Elo, (SPRT/LRR if SPRT, otherwise CONF), Games -->
|
||||
<pre>{{test|longStatBlock|linebreaksbr}}</pre>
|
||||
<pre class="long-statblock" id="long-statblock">{{test|longStatBlock|linebreaksbr}}</pre>
|
||||
|
||||
<!-- Forum to modify the Priority or Throughput -->
|
||||
<form method="POST" action="/test/{{test.id}}/MODIFY">
|
||||
|
||||
{% csrf_token %}
|
||||
|
||||
<label>Priority</label><input value="{{test.priority}}" name="priority"><br>
|
||||
<label>Throughput</label><input value="{{test.throughput}}" name="throughput"><br>
|
||||
<label>Report Rate</label><input value="{{test.report_rate}}" name="report_rate"><br>
|
||||
<label>Workload Size</label><input value="{{test.workload_size}}" name="workload_size"><br>
|
||||
|
||||
<!-- Edit Button: For Approvers or Test Authors -->
|
||||
{% if profile.approver or profile.user.username == test.author %}
|
||||
<input type="submit" name="submit" value="Modify">
|
||||
{% else %}
|
||||
<input class="deadbutton" type="submit" name="submit" value="Modify">
|
||||
{% endif %}
|
||||
|
||||
<div class="form">
|
||||
<div class="col-full">
|
||||
<div class="row">
|
||||
<label>Priority</label><input value="{{test.priority}}" name="priority">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label>Throughput</label><input value="{{test.throughput}}" name="throughput">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label>Report Rate</label><input value="{{test.report_rate}}" name="report_rate">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label>Workload Size</label><input value="{{test.workload_size}}" name="workload_size">
|
||||
</div>
|
||||
<!-- Edit Button: For Approvers or Test Authors -->
|
||||
{% if profile.approver or profile.user.username == test.author %}
|
||||
<input class="anchorbutton btn-blue w-100" type="submit" name="submit" value="Modify">
|
||||
{% else %}
|
||||
<input class="anchorbutton btn-disabled w-100" type="submit" name="submit" value="Modify">
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<div id="results">
|
||||
|
||||
<table class="datatable">
|
||||
|
||||
<tr>
|
||||
<div id="results" class="w-100 mt-3" style="float:left;">
|
||||
<table class="stripes wrappable">
|
||||
<tr class="table-header">
|
||||
<th>#</th>
|
||||
<th>User</th>
|
||||
<th>OS</th>
|
||||
|
||||
@@ -3,22 +3,37 @@
|
||||
{% block content %}
|
||||
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
{% csrf_token %}
|
||||
|
||||
<div class="form">
|
||||
<div class="col">
|
||||
<div class="row">
|
||||
<label>Name</label><input name="name">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label>Weights</label><input name="netfile" type="file">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label>Engine</label>
|
||||
<select id="engine" name="engine">
|
||||
{% for engine in config.engines %}
|
||||
{% if engine == profile.engine %}
|
||||
<option selected value="{{ engine }}">{{ engine }}</option>
|
||||
{% else %}
|
||||
<option value="{{ engine }}">{{ engine }}</option>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<input type="submit" class="anchorbutton btn-blue w-100" value="Upload">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<label>Name</label><input name="name"><br>
|
||||
<label>Weights</label><input name="netfile" type="file"><br>
|
||||
|
||||
<label>Engine</label> <select id="engine" name="engine">
|
||||
{% for engine in config.engines %}
|
||||
{% if engine == profile.engine %}
|
||||
<option selected value="{{engine}}">{{engine}}</option>
|
||||
{% else %}
|
||||
<option value="{{engine}}">{{engine}}</option>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</select><br>
|
||||
|
||||
<input type="submit" value="Upload">
|
||||
<form>
|
||||
|
||||
{% endblock %}
|
||||
@@ -4,35 +4,37 @@
|
||||
|
||||
{% block content %}
|
||||
|
||||
<table>
|
||||
<table class="hoverable">
|
||||
|
||||
<tr>
|
||||
<th>Username</th>
|
||||
<tr class="table-header">
|
||||
<th>Username</th>
|
||||
<th>Games</th>
|
||||
<th>Tests</th>
|
||||
<th>Engine</th>
|
||||
<th>Engine</th>
|
||||
<th>Default Repository</th>
|
||||
</tr>
|
||||
|
||||
<!---
|
||||
<tr style="font-weight: bold">
|
||||
<th>{{profiles|length}}</th>
|
||||
<th>{{profiles|sumAttributes:"games"|insertCommas}}</th>
|
||||
<th>{{profiles|sumAttributes:"tests"|insertCommas}}</th>
|
||||
<th></th><th></th>
|
||||
</tr>
|
||||
--->
|
||||
|
||||
{% for profile in profiles %}
|
||||
{% if profile.enabled %}
|
||||
{% if profile.games or profile.tests or profile.approver %}
|
||||
<tr>
|
||||
<td><a href="/user/{{profile.user.username}}">{{profile.user.username|capfirst}}</a></td>
|
||||
<td style="text-align: right">{{profile.games|insertCommas}}</td>
|
||||
<td style="text-align: right">{{profile.tests|insertCommas}}</td>
|
||||
<td>{{profile.engine}}</td>
|
||||
<td><a href="{{profile.repo}}">{{profile.repo}}</a></td>
|
||||
</tr>
|
||||
{% if profile.enabled %}
|
||||
{% if profile.games or profile.tests or profile.approver %}
|
||||
<tr>
|
||||
<td><a href="/user/{{profile.user.username}}">{{profile.user.username|capfirst}}</a></td>
|
||||
<td style="text-align: right">{{profile.games|insertCommas}}</td>
|
||||
<td style="text-align: right">{{profile.tests|insertCommas}}</td>
|
||||
<td>{{profile.engine}}</td>
|
||||
<td><a href="{{profile.repo}}">{{profile.repo}}</a></td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
</table>
|
||||
|
||||
Reference in new issue
Block a user