diff --git a/OpenBench/static/refresh.css b/OpenBench/static/refresh.css
index 7619c36..fec7d7a 100644
--- a/OpenBench/static/refresh.css
+++ b/OpenBench/static/refresh.css
@@ -276,3 +276,15 @@
#content .statblock.state-stopped {
background-image: repeating-linear-gradient(135deg, transparent 0, transparent 6px, var(--hatch) 6px, var(--hatch) 7.5px, transparent 7.5px, transparent 9px);
}
+
+/* Author names are shown in full; very long ones are clipped with an ellipsis */
+#content td.col-author {
+ max-width: 14ch;
+}
+
+#content td.col-author a {
+ display: block;
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+}
diff --git a/OpenBench/static/workload-refresh.css b/OpenBench/static/workload-refresh.css
index 2d97c41..159d042 100644
--- a/OpenBench/static/workload-refresh.css
+++ b/OpenBench/static/workload-refresh.css
@@ -35,6 +35,54 @@
font-size: 12px;
}
+/* Dev / Base comparison */
+.config-compare {
+ width: 100%;
+ border-collapse: collapse;
+ margin-bottom: 8px;
+}
+
+.config-compare th {
+ text-align: left;
+ padding: 8px 12px;
+ font-size: 12.5px;
+ font-weight: 600;
+ color: var(--muted);
+ border-bottom: 1px solid var(--line);
+}
+
+.config-compare td {
+ padding: 8px 12px;
+ vertical-align: top;
+ overflow-wrap: anywhere;
+ border-bottom: 1px solid var(--line);
+}
+
+.config-compare .td-label {
+ width: 1%;
+ white-space: nowrap;
+ color: var(--muted);
+}
+
+.config-compare .mono {
+ font-family: var(--font-mono);
+ font-size: 13px;
+}
+
+/* A value that differs between Dev and Base */
+.config-compare td.diff {
+ background: var(--accent-soft);
+ box-shadow: inset 2px 0 0 var(--accent);
+}
+
+.config-shared {
+ margin-top: 8px;
+}
+
+@media (max-width: 640px) {
+ .config-compare td, .config-compare th { padding: 6px 8px; }
+}
+
.result-hero-note {
margin: 8px 0 0;
color: var(--muted);
diff --git a/Templates/OpenBench/Blocks/testsummary.html b/Templates/OpenBench/Blocks/testsummary.html
index 2b0c014..f0c1c03 100644
--- a/Templates/OpenBench/Blocks/testsummary.html
+++ b/Templates/OpenBench/Blocks/testsummary.html
@@ -1,5 +1,5 @@
{% load mytags uitags %}
-
{{test.author|capfirst|slice:":6"}} |
+{{test.author|capfirst}} |
{{test.dev_engine}} |
{{test|prettyDevName}}
diff --git a/Templates/OpenBench/base.html b/Templates/OpenBench/base.html
index f284f76..57909af 100644
--- a/Templates/OpenBench/base.html
+++ b/Templates/OpenBench/base.html
@@ -47,7 +47,8 @@
};
for (var i = 0; i < timestamps.length; i++) {
- var date = new Date(1000 * timestamps[i].innerHTML);
+ var epoch = timestamps[i].getAttribute('data-epoch');
+ var date = new Date(1000 * (epoch !== null ? epoch : timestamps[i].innerHTML));
timestamps[i].innerHTML = date.toLocaleString(undefined, options);
}
}
diff --git a/Templates/OpenBench/workload.html b/Templates/OpenBench/workload.html
index ba0d587..1105590 100644
--- a/Templates/OpenBench/workload.html
+++ b/Templates/OpenBench/workload.html
@@ -33,58 +33,85 @@
{% endwith %}
{% endif %}
-
-
+
+
+
+
+ |
+ {{dev_text}} |
+ {% if type == "TEST" or type == "DATAGEN" %}Base | {% endif %}
+
+
+
+
+ | Source |
+ {{workload.dev_repo}} |
+ {% if type == "TEST" or type == "DATAGEN" %}{{workload.base_repo}} | {% endif %}
+
+
+ | Branch |
+ {{workload.dev.name|prettyName}} |
+ {% if type == "TEST" or type == "DATAGEN" %}{{workload.base.name|prettyName}} | {% endif %}
+
+
+ | Commit |
+ {{workload.dev.sha}} |
+ {% if type == "TEST" or type == "DATAGEN" %}{{workload.base.sha}} | {% endif %}
+
+
+ | Bench |
+ {{workload.dev.bench}} |
+ {% if type == "TEST" or type == "DATAGEN" %}{{workload.base.bench}} | {% endif %}
+
+
+ | Network |
+ {{workload.dev_netname}} |
+ {% if type == "TEST" or type == "DATAGEN" %}{{workload.base_netname}} | {% endif %}
+
+
+ | Options |
+ {{workload.dev_options}} |
+ {% if type == "TEST" or type == "DATAGEN" %}{{workload.base_options}} | {% endif %}
+
+
+ | Time control |
+ {{workload.dev_time_control}} |
+ {% if type == "TEST" or type == "DATAGEN" %}{{workload.base_time_control}} | {% endif %}
+
+
+
+
+
+
| Author | {{workload.author|capfirst}} |
- | Creation | {{workload.creation|date:'U'}} |
-
-
- | {{dev_text}} Source | {{workload.dev_repo}} |
- | {{dev_text}} Sha | {{workload.dev.sha}} |
- | {{dev_text}} Branch | {{workload.dev.name|prettyName}} |
- | {{dev_text}} Bench | {{workload.dev.bench}} |
- | {{dev_text}} Network | {{workload.dev_netname}} |
- | {{dev_text}} Options | {{workload.dev_options}} |
- | {{dev_text}} Time | {{workload.dev_time_control}} |
-
-
- {% if type == "TEST" or type == "DATAGEN" %}
- | Base Source | {{workload.base_repo}} |
- | Base Sha | {{workload.base.sha}} |
- | Base Branch | {{workload.base.name|prettyName}} |
- | Base Bench | {{workload.base.bench}} |
- | Base Network | {{workload.base_netname}} |
- | Base Options | {{workload.base_options}} |
- | Base Time | {{workload.base_time_control}} |
- {% endif %}
+ | Created | |
{% if book_url %}
- | Opening Book | {{workload.book_name}} |
+ | Opening book | {{workload.book_name}} |
{% else %}
- | Opening Book | {{workload.book_name}} |
+ | Opening book | {{workload.book_name}} |
{% endif %}
| Upload PGNs | {{workload.upload_pgns}} |
| Syzygy WDL | {{workload.syzygy_wdl}} |
- | Syzygy ADJ. | {{workload.syzygy_adj}} |
- | Win ADJ. | {{workload.win_adj}} |
- | Draw ADJ. | {{workload.draw_adj}} |
+ | Syzygy adjudication | {{workload.syzygy_adj}} |
+ | Win adjudication | {{workload.win_adj}} |
+ | Draw adjudication | {{workload.draw_adj}} |
{% if type == "TUNE" %}
| Alpha | {{workload.spsa.Alpha}} |
| Gamma | {{workload.spsa.Gamma}} |
- | A-Ratio | {{workload.spsa.A_ratio}} |
+ | A-ratio | {{workload.spsa.A_ratio}} |
| Reporting | {{workload.spsa.reporting_type}} |
| Distribution | {{workload.spsa.distribution_type}} |
- | Pairs Per Point | {{workload.workload_size}} |
+ | Pairs per point | {{workload.workload_size}} |
{% elif type == "DATAGEN" %}
- | Genfens Args | {{workload.genfens_args}} |
- | Play Reverses | {{workload.play_reverses}} |
+ | Genfens args | {{workload.genfens_args}} |
+ | Play reverses | {{workload.play_reverses}} |
{% endif %}
-
@@ -101,8 +128,6 @@
Approve
{% elif not workload.approved and request.user.is_superuser %}
Approve
- {% else %}
-
{% endif %}
@@ -110,8 +135,6 @@
Restart
{% elif workload.finished and not workload.passed and not workload.failed and profile.user.username == workload.author %}
Restart
- {% elif workload.finished %}
-
{% endif %}
@@ -119,8 +142,6 @@
Stop
{% elif not workload.finished and profile.user.username == workload.author %}
Stop
- {% elif not workload.finished %}
-
{% endif %}
@@ -130,26 +151,20 @@
{% else %}
Delete
{% endif %}
- {% else %}
- {% if workload.deleted %}
-
- {% else %}
-
- {% endif %}
{% endif %}
{% if type == "TEST" or type == "DATAGEN" %}
-
+
{% endif %}
{% if type == "TEST" or type == "DATAGEN" %}
-
+
{% endif %}
@@ -178,11 +193,11 @@
{% if type == "TEST" %}
- {{workload|longStatBlock|linebreaksbr}}
+ {{workload|longStatBlock|linebreaksbr}}
{% elif type == "TUNE" %}
- {{workload|shortStatBlock|linebreaksbr}}
+ {{workload|shortStatBlock|linebreaksbr}}
{% elif type == "DATAGEN" %}
- {{workload|longStatBlock|linebreaksbr}}
+ {{workload|longStatBlock|linebreaksbr}}
{% endif %}
Adjust
@@ -276,7 +291,7 @@
| {{result.data.machine.id}} |
{{result.data.machine.user.username|capfirst}} |
- {{result.data.updated|date:'U'}} |
+ |
{{result.data.games}} |
{{result.data.wins}} |
{{result.data.losses}} |
|