Add user view

This commit is contained in:
AndyGrant committed 2018-06-09 19:30:20 -04:00
1 parent e0159edd35
commit 8af4b023c4
7 files changed
+95 -50

No files matched your search

+9 -9
View File
@@ -11,7 +11,6 @@
{% endblock %}
</title>
</head>
<body>
<div id="sidebar">
{% block sidebar %}
@@ -25,19 +24,20 @@
{% endif %}
</ul>
<ul>
<li class="listheader"> CONTENT </li>
<li> <a href="/index"> Index </a> </li>
<li> <a href="/newTest/"> New Test </a> </li>
<li> <a href="/eventLog"> Event Log </a> </li>
<li class="listheader"> CONTENT</li>
<li><a href="/index">Home</a></li>
<li><a href="/users">Users</a></li>
<li><a href="/machines">Machines</a></li>
<li><a href="/eventLog">Event Log</a></li>
<li><a href="/newTest">Create 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>
<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 %}
+4 -15
View File
@@ -6,14 +6,11 @@
Index
{% endblock %}
{% block content %}
<h2>Pending</h2>
<table>
<tr>
<th class="tabletitle">TEST</th>
<th class="tabletitle">DIFF</th>
<th class="tabletitle">APPROVE</th>
</tr>
{% for test in pending %}
<tr class={{test.status}}>
<td style="text-align:left;font-weight:bold">
@@ -26,15 +23,9 @@ Index
</tr>
{% endfor %}
</table>
<table>
<tr>
<th class="tabletitle">AUTHOR</th>
<th class="tabletitle">TEST</th>
<th class="tabletitle">DIFF</th>
<th class="tabletitle">STATS</th>
<th class="tabletitle">ELO</th>
</tr>
<h2>Approved</h2>
<table>
{% for test in active %}
<tr class={{test.status}}>
<td style="text-align:left;font-weight:bold">
@@ -50,7 +41,6 @@ Index
{{test.eloupper|twoDigitPrecision}}] <br> Games: {{test.games}}
W: {{test.wins}} L: {{test.losses}} D: {{test.draws}}
</strong></td>
<td> {{enginetest.elo|twoDigitPrecision}} </td>
</tr>
{% endfor %}
@@ -69,7 +59,6 @@ Index
{{test.eloupper|twoDigitPrecision}}] <br> Games: {{test.games}}
W: {{test.wins}} L: {{test.losses}} D: {{test.draws}}
</strong></td>
<td> {{enginetest.elo|twoDigitPrecision}} </td>
</tr>
{% endfor %}
</table>
+28
View File
@@ -0,0 +1,28 @@
{% extends "OpenBench/base.html" %}
{% block title %}
Event Log
{% endblock %}
{% block style %}
{% load static %}
{% endblock %}
{% block content %}
<table>
<tr>
<th>Username</th>
<th>Games</th>
<th>Tests</th>
<th>Repository</th>
</tr>
{% for profile in profiles %}
<tr>
<td>{{profile.user.username}}</td>
<td>{{profile.games}}</td>
<td>{{profile.tests}}</td>
<td>{{profile.repo}}</td>
</tr>
{% endfor %}
<table>
{% endblock %}