From eeac72400b7829cf0bdc817a5427dbd656368ffd Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Fri, 20 Jan 2023 09:57:12 +0100 Subject: [PATCH] queue: show active cycles --- app/templates/queue.html | 8 ++++++++ app/web.py | 1 + 2 files changed, 9 insertions(+) diff --git a/app/templates/queue.html b/app/templates/queue.html index 4f02295..76881da 100644 --- a/app/templates/queue.html +++ b/app/templates/queue.html @@ -53,6 +53,14 @@
+ {% if cycles %} +

Cycles: + {% for (a, b) in cycles %} + {{ a }}{{ b }}{{ ", " if not loop.last else "" }} + {% endfor %} +

+ {% endif %} + diff --git a/app/web.py b/app/web.py index 65a2685..cc8659d 100644 --- a/app/web.py +++ b/app/web.py @@ -647,6 +647,7 @@ async def queue(request: Request, response: Response, repo: str = "") -> Respons "removals": removals, "repos": repos, "repo_filter": repo_filter, + "cycles": state.build_status.cycles, }, headers=dict(response.headers))