63 lines
2.1 KiB
HTML
63 lines
2.1 KiB
HTML
{% extends "OpenBench/base.html" %}
|
|
{% load mytags %}
|
|
{% block content %}
|
|
<table class="datatable">
|
|
<tr><td class="embedded"><h2>Pending</h2></td></tr>
|
|
{% if pending %}
|
|
<tr>
|
|
<th>Creation</th>
|
|
<th>Author</th>
|
|
<th>Test</th>
|
|
<th>Diff</th>
|
|
<th>Stats</th>
|
|
</tr>
|
|
{% endif %}
|
|
{% for test in pending %}
|
|
<tr>
|
|
<td>{{test.creation|date:'Y-m-d'}}</td>
|
|
<td><a href="/viewUser/{{test.author}}">{{test.author}}</a></td>
|
|
<td><a href="/viewTest/{{test.id}}">{{test.dev.name}}</a></td>
|
|
<td class="textcenter"><a href="{{test|gitDiffLink}}">diff</a></td>
|
|
<td class="statblock"><strong>{{test|shortStatBlock|linebreaksbr}}</strong></td>
|
|
</tr>
|
|
{% endfor %}
|
|
<tr><td class="embedded"><h2>Active</h2></td></tr>
|
|
{% if active %}
|
|
<tr>
|
|
<th>Creation</th>
|
|
<th>Author</th>
|
|
<th>Test</th>
|
|
<th>Diff</th>
|
|
<th>Stats</th>
|
|
</tr>
|
|
{% endif %}
|
|
{% for test in active %}
|
|
<tr class="{{test|testResultColour}}">
|
|
<td>{{test.creation|date:'Y-m-d'}}</td>
|
|
<td><a href="/viewUser/{{test.author}}">{{test.author}}</a></td>
|
|
<td><a href="/viewTest/{{test.id}}">{{test.dev.name}}</a></td>
|
|
<td class="textcenter"><a href="{{test|gitDiffLink}}">diff</a></td>
|
|
<td class="statblock"><strong>{{test|shortStatBlock|linebreaksbr}}</strong></td>
|
|
</tr>
|
|
{% endfor %}
|
|
<tr><td class="embedded"><h2>Finished</h2></td></tr>
|
|
{% if completed %}
|
|
<tr>
|
|
<th>Creation</th>
|
|
<th>Author</th>
|
|
<th>Test</th>
|
|
<th>Diff</th>
|
|
<th>Stats</th>
|
|
</tr>
|
|
{% endif %}
|
|
{% for test in completed %}
|
|
<tr class="{{test|testResultColour}}">
|
|
<td>{{test.creation|date:'Y-m-d'}}</td>
|
|
<td><a href="/viewUser/{{test.author}}">{{test.author}}</a></td>
|
|
<td><a href="/viewTest/{{test.id}}">{{test.dev.name}}</a></td>
|
|
<td class="textcenter"><a href="{{test|gitDiffLink}}">diff</a></td>
|
|
<td class="statblock"><strong>{{test|shortStatBlock|linebreaksbr}}</strong></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
{% endblock %} |