Files
OpenBench/Templates/OpenBench/index.html
T
AndyGrant 39cc7d41bb Fix a few bugs ...
1) Forgot to remove reference to data in viewProfile() in simplification
2) Forgot to adjust condition in template for index viewing pending/active tests
3) Forgot to adjust default page for greens to be 1
2019-10-24 06:17:41 -04:00

58 lines
2.4 KiB
HTML

{% extends "OpenBench/base.html" %}
{% load mytags %}
{% block content %}
<table class="datatable">
{% if paging.page == 1 and greens == False %}
<tr><td class="embedded" colspan='7'><h2>Pending</h2></td></tr>
{% for test in pending %}
<tr>
<td class="numeric"><a href="/viewUser/{{test.author}}">{{test.author}}</a></td>
<td class="numeric">{{test.engine}}</td>
<td><a href="/viewTest/{{test.id}}">{{test.dev.name}}</a></td>
<td class="textcenter"><a href="{{test|gitDiffLink}}">diff</a></td>
<td>{{test.timecontrol}}</td>
<td class="statblock"><strong>{{test|shortStatBlock|linebreaksbr}}</strong></td>
</tr>
{% endfor %}
{% if active %}
<tr><td class="embedded" colspan='7'><h2>Active {{status}}</h2></td></tr>
{% endif %}
{% for test in active %}
<tr>
<td class="numeric"><a href="/viewUser/{{test.author}}">{{test.author}}</a></td>
<td class="numeric">{{test.engine}}</td>
<td><a href="/viewTest/{{test.id}}">{{test.dev.name}}</a></td>
<td class="textcenter"><a href="{{test|gitDiffLink}}">diff</a></td>
<td>{{test.timecontrol}}</td>
<td class="statblock"><strong>{{test|shortStatBlock|linebreaksbr}}</strong></td>
</tr>
{% endfor %}
{% endif %}
<tr><td class="embedded" colspan='7'><h2>Finished</h2></td></tr>
{% for test in completed %}
<tr>
<td class="numeric"><a href="/viewUser/{{test.author}}">{{test.author}}</a></td>
<td class="numeric">{{test.engine}}</td>
<td><a href="/viewTest/{{test.id}}">{{test.dev.name}}</a></td>
<td class="textcenter"><a href="{{test|gitDiffLink}}">diff</a></td>
<td>{{test.timecontrol}}</td>
<td class='statblock {{test|testResultColour}}'><strong>{{test|shortStatBlock|linebreaksbr}}</strong></td>
</tr>
{% endfor %}
</table>
<div id="pagebrowse">
{% if paging.prev != paging.next %}
<a class="page" href="/{{paging.url}}/{{paging.prev}}">&lt;--</a>
{% for page in paging.pages %}
{% if page != "..." %}
<a class="page" href="/{{paging.url}}/{{page}}">{{page}}</a>
{% else %}
<a class="page"> {{page}} </a>
{% endif %}
{% endfor %}
<a class="page" href="/{{paging.url}}/{{paging.next}}">--&gt;</a>
{% endif %}
</div>
{% endblock %}