Finalize Priority Group Dividers (#184)

Co-authored-by: MinusKelvin <mark.carlson@minuskelvin.net>
This commit is contained in:
Andrew GrantandMinusKelvin authored and GitHub committed 2024-01-09 14:11:41 -05:00
1 parent 2363e7a517
commit 003148abbe
4 files changed
+35 -18

No files matched your search

+15 -7
View File
@@ -1,5 +1,7 @@
{% extends "OpenBench/base.html" %}
{% load mytags %}
{% block content %}
<table class="test-list stripes hoverable">
@@ -32,13 +34,19 @@
<!-- Currently Running tests (Waiting to be completed) -->
{% if active %}
<tr class="table-header"><th colspan='6'>Active {{status}}</th></tr>
{% for group in active %}
<tr class="table-small-header"><th colspan='6'>Priority {{group.priority}}</th></tr>
{% for test in group.tests %}
<tr>
{% include "OpenBench/Blocks/testsummary.html" %}
</tr>
{% endfor %}
{% 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"><th colspan='6'></th></tr>
<tr class="table-spacer-small"><th colspan='6'></th></tr>
{% endif %}
{% endwith %}
<tr>
{% include "OpenBench/Blocks/testsummary.html" %}
</tr>
{% endfor %}
<tr class="table-spacer"><th colspan='6'></th></tr>
{% endif %}