- base.html: new topbar/sidebar/main layout, accessible mobile menu, dismissible message banners, toast container, page_head block - ui.js: current-page nav highlight, mobile menu close, copy toast - index/testsummary: one card per section with column headers, labelled flags instead of coloured asterisks, empty state - pagebrowser: nav landmark + aria labels All Django logic, URLs, IDs and JS hooks are unchanged.
105 lines
4.0 KiB
HTML
105 lines
4.0 KiB
HTML
{% extends "OpenBench/base.html" %}
|
|
|
|
{% load mytags %}
|
|
|
|
{% block page_head %}<div><h1 class="page-title">Tests</h1><p class="page-sub">Pending, active and finished workloads</p></div>{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<!-- Only show Pending tests for the front page of the Index -->
|
|
{% if paging.page == 1 %}
|
|
|
|
<!-- Currently Pending tests (Waiting to be approved) -->
|
|
{% if pending %}
|
|
<section class="card">
|
|
<header class="card-head">
|
|
<h2 class="card-title">Pending</h2>
|
|
<span class="count">{{ pending|length }}</span>
|
|
</header>
|
|
<table class="test-list stripes hoverable">
|
|
{% include "OpenBench/Blocks/testhead.html" %}
|
|
<tbody>
|
|
{% for test in pending %}
|
|
<tr>
|
|
{% include "OpenBench/Blocks/testsummary.html" %}
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
{% endif %}
|
|
|
|
<!-- Currently Awaiting tests (Waiting for Artifacts) -->
|
|
{% if awaiting %}
|
|
<section class="card">
|
|
<header class="card-head">
|
|
<h2 class="card-title">Awaiting Artifacts</h2>
|
|
<span class="count">{{ awaiting|length }}</span>
|
|
</header>
|
|
<table class="test-list stripes hoverable">
|
|
{% include "OpenBench/Blocks/testhead.html" %}
|
|
<tbody>
|
|
{% for test in awaiting %}
|
|
<tr>
|
|
{% include "OpenBench/Blocks/testsummary.html" %}
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
{% endif %}
|
|
|
|
<!-- Currently Running tests (Waiting to be completed) -->
|
|
{% if active %}
|
|
<section class="card">
|
|
<header class="card-head">
|
|
<h2 class="card-title">Active {{status}}</h2>
|
|
<span class="count">{{ active|length }}</span>
|
|
</header>
|
|
<table class="test-list stripes hoverable">
|
|
{% include "OpenBench/Blocks/testhead.html" %}
|
|
<tbody>
|
|
{% for test in active %}
|
|
|
|
<!-- Add two empty rows ( for the colouring scheme ) when changing prio -->
|
|
{% with prev_test=active|previous:forloop.counter0 %}
|
|
{% if prev_test and prev_test.priority != test.priority %}
|
|
<tr class="table-spacer-small"><td colspan='6'></td></tr>
|
|
<tr class="table-spacer-small"><td colspan='6'></td></tr>
|
|
{% endif %}
|
|
{% endwith %}
|
|
|
|
<tr>
|
|
{% include "OpenBench/Blocks/testsummary.html" %}
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
<!-- Tests which have already finished -->
|
|
<section class="card">
|
|
<header class="card-head">
|
|
<h2 class="card-title">Finished</h2>
|
|
</header>
|
|
<table class="test-list stripes hoverable">
|
|
{% include "OpenBench/Blocks/testhead.html" %}
|
|
<tbody>
|
|
{% for test in completed %}
|
|
<tr>
|
|
{% include "OpenBench/Blocks/testsummary.html" %}
|
|
</tr>
|
|
{% empty %}
|
|
<tr class="empty-row"><td colspan="6">No finished tests yet.</td></tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
|
|
{% include "OpenBench/Blocks/pagebrowser.html" %}
|
|
|
|
{% endblock %}
|