From ad480de045d90b69a2f74cc9832fb40b1fb99670 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 1 Aug 2023 15:50:06 +0000 Subject: [PATCH] jobs: Group by date Signed-off-by: Michael Tremer --- src/templates/jobs/index.html | 11 ++++++++--- src/web/jobs.py | 4 ++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/templates/jobs/index.html b/src/templates/jobs/index.html index 4c896b75..c9fd8d0e 100644 --- a/src/templates/jobs/index.html +++ b/src/templates/jobs/index.html @@ -23,9 +23,14 @@
-
- {% module JobsQueue(jobs) %} -
+ {# Render all jobs #} + {% for date in jobs %} +
+

{{ locale.format_day(date) }}

+ + {% module JobsQueue(jobs[date]) %} +
+ {% end %}