Cleanup templates for all views
Make use of the block structure to clean up index/events/search heavily Fix a bug for the paging context on the events view
This commit is contained in:
1 parent
caa5bcfdf6
commit
9ec29cf03b
16 files changed
+542
-597
No files matched your search
@@ -1,58 +1,38 @@
|
||||
{% 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>
|
||||
<table class="datatable">
|
||||
|
||||
<div id="pagebrowse">
|
||||
{% if paging.prev != paging.next %}
|
||||
<a class="page" href="/{{paging.url}}/{{paging.prev}}"><--</a>
|
||||
{% for page in paging.pages %}
|
||||
{% if page != "..." %}
|
||||
<a class="page" href="/{{paging.url}}/{{page}}">{{page}}</a>
|
||||
{% else %}
|
||||
<a class="page"> {{page}} </a>
|
||||
<!-- Only show Pending tests for the front page of the Index -->
|
||||
{% if paging.page == 1 and greens == False %}
|
||||
|
||||
<!-- Currently Pending tests (Waiting to be approved) -->
|
||||
<tr><td class="embedded" colspan='6'><h2>Pending</h2></td></tr>
|
||||
{% for test in pending %}
|
||||
{% include "OpenBench/Blocks/testsummary.html" %}
|
||||
{% endfor %}
|
||||
|
||||
<!-- Show Worker information when running a test -->
|
||||
{% if active %}
|
||||
<tr><td class="embedded" colspan='6'><h2>Active {{status}}</h2></td></tr>
|
||||
{% endif %}
|
||||
|
||||
<!-- Currently Running tests (Waiting to be completed) -->
|
||||
{% for test in active %}
|
||||
{% include "OpenBench/Blocks/testsummary.html" %}
|
||||
{% endfor %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
<!-- Tests which have already finished -->
|
||||
<tr><td class="embedded" colspan='6'><h2>Finished</h2></td></tr>
|
||||
{% for test in completed %}
|
||||
{% include "OpenBench/Blocks/testsummary.html" %}
|
||||
{% endfor %}
|
||||
<a class="page" href="/{{paging.url}}/{{paging.next}}">--></a>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
</table>
|
||||
|
||||
{% include "OpenBench/Blocks/pagebrowser.html" %}
|
||||
|
||||
{% endblock %}
|
||||
Reference in new issue
Block a user