{% extends "OpenBench/base.html" %} {% load mytags %} {% block style %} {% load static %} {% endblock %} {% block scripts %} function copy_statblock() { var text = document.getElementById("long-statblock").innerHTML; text = text.replace(/
/g, "\n"); text += "\n" + window.location.href; // navigator.clipboard.writeText(text); // Optimal solution // Suboptimal, HTTP solution var area = document.createElement("textarea"); area.value = text; document.body.append(area); area.focus(); area.select(); try { document.execCommand("copy"); document.body.removeChild(area); } catch (err) { document.body.removeChild(area); console.error("Unable to copy to Clipboard"); } } {% endblock %} {% block content %}
{% if test.devnetwork %} {% endif %} {% if test.basenetwork %} {% endif %}
Author{{test.author|capfirst}}
Creation{{test.creation|date:'U'}}
Engine{{test.engine}}
Dev Branch{{test.dev.name|prettyName}}
Dev Bench{{test.dev.bench}}
Dev Options{{test.devoptions}}
Dev Sha{{test.dev.sha}}
Dev Network {{test.devnetname}}
Base Branch{{test.base.name|prettyName}}
Base Bench{{test.base.bench}}
Base Options{{test.baseoptions}}
Base Sha{{test.base.sha}}
Base Network {{test.basenetname}}
Source Repo{{test.source}}
Opening Book{{test.bookname}}
Syzygy WDL{{test.syzygy_wdl}}
Syzygy ADJ.{{test.syzygy_adj}}
Win ADJ.{{test.win_adj}}
Draw ADJ.{{test.draw_adj}}

{{test.dev.name|prettyName}} vs {{test.base.name|prettyName}}

{% if not test.approved and profile.approver and profile.user.username != test.author %} Approve {% elif not test.approved and request.user.is_superuser %} Approve {% else %} Approve {% endif %} {% if test.finished and profile.approver %} Restart {% elif test.finished and profile.user.username == test.author %} Restart {% elif test.finished %} Restart {% endif %} {% if not test.finished and profile.approver %} Stop {% elif not test.finished and profile.user.username == test.author %} Stop {% elif not test.finished %} Stop {% endif %} {% if profile.approver or profile.user.username == test.author %} Delete {% else %} Delete {% endif %}
{{test|longStatBlock|linebreaksbr}}
{% csrf_token %}
{% if profile.approver or profile.user.username == test.author %} {% else %} {% endif %}
{% for id, result in results.items %} {% endfor %}
# User Updated Games Won Lost Drawn Time Crash
{{result.machine_id}} {{result.username|capfirst|slice:"6"}} {{result.updated|date:'U'}} {{result.games}} {{result.wins}} {{result.losses}} {{result.draws}} {{result.timeloss}} {{result.crashes}}
{% endblock %}