diff --git a/OpenBench/static/workload-refresh.css b/OpenBench/static/workload-refresh.css deleted file mode 100644 index 159d042..0000000 --- a/OpenBench/static/workload-refresh.css +++ /dev/null @@ -1,90 +0,0 @@ -/* Workload page additions for the design refresh. Loaded after workload.css. */ - -.result-hero { - grid-column: 1 / -1; - display: flex; - flex-wrap: wrap; - align-items: center; - gap: 24px; - padding: 18px 20px; - background: var(--color2); - border: 1px solid var(--line); - border-radius: var(--radius); -} - -.result-hero .statblock { - padding: 12px 18px; - border-radius: var(--radius); - font-family: var(--font-mono); - font-size: 15px; - line-height: 1.5; - white-space: nowrap; -} - -.result-hero .result-hero-gauge { - flex: 1 1 260px; - min-width: 220px; -} - -.result-hero .llr { - margin-top: 0; - height: 8px; -} - -.result-hero .llr-scale { - 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); - font-size: 13px; -} diff --git a/Templates/OpenBench/workload.html b/Templates/OpenBench/workload.html index 35fa72a..e3f4811 100644 --- a/Templates/OpenBench/workload.html +++ b/Templates/OpenBench/workload.html @@ -1,11 +1,10 @@ {% extends "OpenBench/base.html" %} -{% load mytags uitags %} +{% load mytags %} {% load static %} {% block scripts %} - {% endblock %} @@ -16,102 +15,57 @@
| - | {{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}} |
| Created | |
| Creation | |
| {{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}} |
| 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}} |
| Opening book | {{workload.book_name}} |
| Opening Book | {{workload.book_name}} |
| Opening book | {{workload.book_name}} |
| Opening Book | {{workload.book_name}} |
| Upload PGNs | {{workload.upload_pgns}} |
| Syzygy WDL | {{workload.syzygy_wdl}} |
| Syzygy adjudication | {{workload.syzygy_adj}} |
| Win adjudication | {{workload.win_adj}} |
| Draw adjudication | {{workload.draw_adj}} |
| Syzygy ADJ. | {{workload.syzygy_adj}} |
| Win ADJ. | {{workload.win_adj}} |
| Draw ADJ. | {{workload.draw_adj}} |
| 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}} |
| Genfens args | {{workload.genfens_args}} |
| Play reverses | {{workload.play_reverses}} |
| Genfens Args | {{workload.genfens_args}} |
| Play Reverses | {{workload.play_reverses}} |
{{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 %}