[projects/pld-builder.new] queue.html: bring back the colours of the old page
arekm
arekm at pld-linux.org
Thu Nov 12 10:13:10 CET 2026
commit 7c8edf686ecdb80a99930906917ea1a1da90222c
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Nov 12 10:00:21 2026 +0100
queue.html: bring back the colours of the old page
The page is on the old warm paper colour again, and a request header
is green, darker for an upgrade and pink for a test build, as before,
so the kind of a request shows from afar. A request opened by its link
has its batches on yellow.
PLD_Builder/queue_html.py | 2 +-
PLD_Builder/style.css | 23 ++++++++++++++++++++---
2 files changed, 21 insertions(+), 4 deletions(-)
---
diff --git a/PLD_Builder/queue_html.py b/PLD_Builder/queue_html.py
index 3e10321..3364c91 100644
--- a/PLD_Builder/queue_html.py
+++ b/PLD_Builder/queue_html.py
@@ -182,7 +182,7 @@ def request_html(r):
jobs = f", jobs {r.max_jobs}" if r.max_jobs else ""
return (
f'<section class="request {request_state(r)}" id="{r.no}" data-requester="{escape(r.requester)}">\n'
- f'<header><a class=no href="#{r.no}">{r.no}</a> <b class=from>{escape(r.requester)}</b>{flags}'
+ f'<header class="{escape(" ".join(r.flags))}"><a class=no href="#{r.no}">{r.no}</a> <b class=from>{escape(r.requester)}</b>{flags}'
f' <span class=rid>priority {r.priority}{jobs}, <a href="srpms/{escape(r.id)}">{escape(r.id)}</a></span>'
f' <span class=sent>queued {clock_zone(r.time)}, <time class=ago datetime="{iso(r.time)}"></time></span></header>\n'
+ "".join(batch_html(batch, r.id) for batch in r.batches)
diff --git a/PLD_Builder/style.css b/PLD_Builder/style.css
index a9f94b0..d2c78af 100644
--- a/PLD_Builder/style.css
+++ b/PLD_Builder/style.css
@@ -1,5 +1,6 @@
+/* the colours of the old queue page: warm paper, requests in green, test builds in pink */
html {
- background: #e9ecef;
+ background: #f3efe3;
color: #111;
font: 14px/1.45 "DejaVu Sans", Verdana, Arial, sans-serif;
font-variant-numeric: tabular-nums;
@@ -38,7 +39,7 @@ select, input {
/* the line of builders: what each does right now */
#now {
- background: #fff;
+ background: #fbf8ef;
border-bottom: 1px solid #aeb6bf;
display: flex;
flex-wrap: wrap;
@@ -94,12 +95,24 @@ h2 {
outline: 3px solid #0b4f9e;
}
+.request:target .batch {
+ background: #fff3cd;
+}
+
.request > header {
- background: #dfe4ea;
+ background: #b2eb91;
border-bottom: 1px solid #aeb6bf;
padding: 2px 12px;
}
+.request > header.upgrade {
+ background: #81c784;
+}
+
+.request > header.test-build {
+ background: #f8d7da;
+}
+
.no {
color: #111;
font-size: 15px;
@@ -264,6 +277,10 @@ h2 {
border-left-color: #aeb6bf;
}
+.legend > header {
+ background: #e7e3d6;
+}
+
.legend .builder p {
color: #444;
font-size: 13px;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/cd99ae3ee9a34ac60f374106e466ffb5955c01e9
More information about the pld-cvs-commit
mailing list