[projects/pld-builder.new] queue.html: hatch builders not done with a batch yet

arekm arekm at pld-linux.org
Thu Nov 12 10:50:31 CET 2026


commit 1196dda59b4d130bfb990ab63a1f286342676f98
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Nov 12 10:49:11 2026 +0100

    queue.html: hatch builders not done with a batch yet
    
    Waiting, building and uploading builders are on a hatched background,
    so unfinished work tells from finished at a glance.

 PLD_Builder/queue_html.py | 8 ++++----
 PLD_Builder/style.css     | 5 +++++
 2 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/PLD_Builder/queue_html.py b/PLD_Builder/queue_html.py
index 3364c91..ce459f1 100644
--- a/PLD_Builder/queue_html.py
+++ b/PLD_Builder/queue_html.py
@@ -238,7 +238,7 @@ def builder_html(batch, name, request_id):
     if is_final(status) and not status.startswith("SKIP"):
         log = f'<a href="{escape(build_log(batch, name, status, request_id))}">log</a>'
     title = f' title="{escape(about)}"' if about else ""
-    return (f'<div class=builder{title}><span class=who>{escape(name)}</span>{plaque(status)}'
+    return (f'<div class="builder {kind(status)}"{title}><span class=who>{escape(name)}</span>{plaque(status)}'
             f'<span class=span>{span}</span><span class=took>{took}</span><span class=log>{log}</span></div>\n')
 
 
@@ -272,13 +272,13 @@ LEGEND = """<h2>How to read a request</h2>
 <div class=batch>
 <div class=what>The next package of the request: they are built one after another.</div>
 <div class=builders>
-<div class=builder><span class=who>builder</span><b class="s wait">waiting</b><span class=span></span>
+<div class="builder wait"><span class=who>builder</span><b class="s wait">waiting</b><span class=span></span>
 <span class=took></span><span class=log></span>
 <p>Not started yet.</p></div>
-<div class=builder><span class=who>builder</span><b class="s run">building</b><span class=span>start → …</span>
+<div class="builder run"><span class=who>builder</span><b class="s run">building</b><span class=span>start → …</span>
 <span class=took>so far</span><span class=log></span>
 <p>Being built right now.</p></div>
-<div class=builder><span class=who>builder</span><b class="s up">uploading</b><span class=span>start → end</span>
+<div class="builder up"><span class=who>builder</span><b class="s up">uploading</b><span class=span>start → end</span>
 <span class=took>took</span><span class=log></span>
 <p>Built; its rpms are on the way to ftp. The times are of the build.</p></div>
 </div>
diff --git a/PLD_Builder/style.css b/PLD_Builder/style.css
index 025eec6..2da4a8d 100644
--- a/PLD_Builder/style.css
+++ b/PLD_Builder/style.css
@@ -222,6 +222,11 @@ h2 {
 	margin-left: 360px;
 }
 
+/* a builder not done with the batch yet is hatched: unfinished work tells from results at a glance */
+.builder.wait, .builder.run, .builder.up {
+	background: repeating-linear-gradient(-45deg, #fff 0 6px, #eceef1 6px 12px);
+}
+
 /* a plaque as wide as its word, not as its column */
 .builder > .s {
 	justify-self: start;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/1196dda59b4d130bfb990ab63a1f286342676f98



More information about the pld-cvs-commit mailing list