This commit is contained in:
AndyGrant committed 2018-06-09 17:03:43 -04:00
1 parent c6d77ca894
commit 3551cd1feb
18 files changed
+194 -23

No files matched your search

+47
View File
@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html lang="en">
{% load static %}
<head>
<link rel="stylesheet" href="{% static 'style.css' %}">
<title>
{% block title %}
OpenBench
{% endblock %}
</title>
</head>
<body>
<div id="sidebar">
{% block sidebar %}
<ul>
<li class="listheader">ADMIN</li>
{% if user.is_authenticated %}
<li><a href="/logout/">Logout</a></li>
{% else %}
<li><a href="/login">Login </a></li>
<li><a href="/register">Register</a></li>
{% endif %}
</ul>
<ul>
<li class="listheader"> CONTENT </li>
<li> <a href="/all"> All </a> </li>
<li> <a href="/index"> Index </a> </li>
<li> <a href="/greens"> Greens </a> </li>
<li> <a href="/newTest/"> New Test </a> </li>
</ul>
<ul>
<li class="listheader"> LINKS </li>
<li> <a href="{{config.homepage}}">{{config.engine}}</a> </li>
<li> <a href="{{config.framework}}"> OpenBench </a> </li>
</ul>
{% endblock %}
</div>
<div id="content">
{% block content %}
{% endblock %}
</div>
</body>
</html>
+52
View File
@@ -0,0 +1,52 @@
{% extends "OpenBench/base.html" %}
{% block title %}
Index
{% endblock %}
{% block content %}
<table>
<tr>
<th class="tabletitle"> TEST </th>
<th class="tabletitle"> DIFF </th>
<th class="tabletitle"> APPROVE </th>
</tr>
{% for test in pendingtests %}
<tr class={{test.status}}>
<td style="text-align:left;font-weight:bold">
<a href="/viewTest/{{test.id}}">{{test.dev.name}}</a>
</td>
<td style="text-align:left;font-weight:bold">
<a href="{{test|gitDiffLink}}">diff</a>
</td>
<td><a href="/approveTest/{{test.id}}">approve</a></td>
</tr>
</table>
<table>
<tr>
<th class="tabletitle"> TEST </th>
<th class="tabletitle"> DIFF </th>
<th class="tabletitle"> STATS </th>
<th class="tabletitle"> ELO </th>
</tr>
{% for test in activetests %}
<tr class={{test.status}}>
<td style="text-align:left;font-weight:bold">
<a href="/viewTest/{{test.id}}">{{test.dev.name}}</a>
</td>
<td style="text-align:left;font-weight:bold">
<a href="{{test|gitDiffLink}}">diff</a>
</td>
<td style="text-align:left;font-size:14px"><strong>
SPRT @ {{test.timecontrol}}s Threads={{test.threads}} Hash={{test.hashsize}}MB<br>
LLR: {{test.currentllr|twoDigitPrecision}} ({{test.lowerllr|twoDigitPrecision}},
{{test.upperllr|twoDigitPrecision}}) [{{test.elolower|twoDigitPrecision}},
{{test.eloupper|twoDigitPrecision}}] <br> Games: {{test.games}}
W: {{test.wins}} L: {{test.losses}} D: {{test.draws}}
</strong></td>
<td> {{enginetest.elo|twoDigitPrecision}} </td>
</tr>
</table>
{% endblock %}