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

+6
View File
@@ -174,6 +174,12 @@ body, html, main{
height: 1rem;
}
#content .table-spacer-small th, #content .table-spacer-small tr {
background-color: #171717;
height: 0.4rem;
padding: 0px;
}
/* Generic Table CSS for all Tables */
#content table {
+12 -1
View File
@@ -379,4 +379,15 @@ register.filter('git_diff_text', git_diff_text)
register.filter('test_is_smp_odds' , test_is_smp_odds )
register.filter('test_is_time_odds' , test_is_time_odds )
register.filter('test_is_fischer' , test_is_fischer )
register.filter('test_is_fischer' , test_is_fischer )
@register.filter
def next(iterable, index):
try: return iterable[int(index) + 1]
except: return None
@register.filter
def previous(iterable, index):
try: return iterable[int(index) - 1]
except: return None
+2 -10
View File
@@ -251,14 +251,6 @@ def profile_config(request):
# TEST LIST VIEWS #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
def priority_grouped(active):
active_grouped = []
for t in active:
if len(active_grouped) == 0 or active_grouped[-1]["priority"] != t.priority:
active_grouped.append({"priority": t.priority, "tests": []})
active_grouped[-1]["tests"].append(t)
return active_grouped
def index(request, page=1):
pending = OpenBench.utils.get_pending_tests()
@@ -270,7 +262,7 @@ def index(request, page=1):
data = {
'pending' : pending,
'active' : priority_grouped(active),
'active' : active,
'completed' : completed[start:end],
'awaiting' : awaiting,
'paging' : paging,
@@ -290,7 +282,7 @@ def user(request, username, page=1):
data = {
'pending' : pending,
'active' : priority_grouped(active),
'active' : active,
'completed' : completed[start:end],
'awaiting' : awaiting,
'paging' : paging,