[projects/pld-builder.new] queue.html: each builder in its own column

arekm arekm at pld-linux.org
Thu Nov 12 21:43:39 CET 2026


commit 62a675bc177b6546bc8f8d37738c42a1412c48a1
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Nov 12 18:23:56 2026 +0100

    queue.html: each builder in its own column
    
    A request sent to some builders only put them in the first columns, so
    th-x32 stood under th-x86_64. Now a missing builder leaves its column empty.

 PLD_Builder/queue_html.py |  9 ++++++---
 PLD_Builder/style.css     | 12 ++++++++----
 2 files changed, 14 insertions(+), 7 deletions(-)
---
diff --git a/PLD_Builder/queue_html.py b/PLD_Builder/queue_html.py
index fc859b2..9242bee 100644
--- a/PLD_Builder/queue_html.py
+++ b/PLD_Builder/queue_html.py
@@ -234,9 +234,12 @@ def builder_html(batch, name, request_id):
     more = ", ".join(([f"<b class=took{seconds}>{took}</b>"] if took else []) + ([log] if log else []))
     more = f" ({more})" if more else ""
     title = f' title="{escape(about)}"' if about else ""
-    # the src builder is not one of the columns of the bin builders
-    src = "" if name in config.binary_builders else " src"
-    return (f'<div class="builder {kind(status)}{src}"{title}><span class=who>{escape(name)}</span>'
+    # each bin builder in its own column, empty in rows not sent to it; the src builder goes elsewhere
+    if name in config.binary_builders:
+        src, column = "", f' style="--column: {config.binary_builders.index(name) + 1}"'
+    else:
+        src, column = " src", ""
+    return (f'<div class="builder {kind(status)}{src}"{column}{title}><span class=who>{escape(name)}</span>'
             f'<span class=state>{plaque(status)}{more}</span><span class=span>{span}</span></div>\n')
 
 
diff --git a/PLD_Builder/style.css b/PLD_Builder/style.css
index 4f8a7e8..14df3c7 100644
--- a/PLD_Builder/style.css
+++ b/PLD_Builder/style.css
@@ -249,17 +249,21 @@ h2 {
 	grid-column: 1 / -2;
 }
 
+.builder {
+	grid-column: var(--column);
+}
+
 /* the src builder of a command goes into the place the package takes in other rows, the bin builders
    into their columns after it */
+.batch.command .builder {
+	grid-column: calc(var(--column) + 1);
+}
+
 .batch.command .builder.src {
 	grid-column: 1;
 	grid-row: 1;
 }
 
-.batch.command .builder:not(.src):first-child {
-	grid-column-start: 2;
-}
-
 /* 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);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/62a675bc177b6546bc8f8d37738c42a1412c48a1



More information about the pld-cvs-commit mailing list