[projects/buildlogs] Id column in main listing.

arekm arekm at pld-linux.org
Tue Apr 21 14:06:46 CEST 2026


commit bd0e7a90706c1e8bb27b2dbd1a1428a63e6ab294
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Apr 21 14:06:26 2026 +0200

    Id column in main listing.

 index.php | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/index.php b/index.php
index 0f55e20..964f1ae 100644
--- a/index.php
+++ b/index.php
@@ -439,6 +439,7 @@ function list_logs()
 			. sort_arrow($col_ns, $ns, $dir);
 	};
 	echo "<tr><th bgcolor=\"#CCCCFF\" align=\"right\" valign=\"middle\" width=\"1%\">"._("No.")."</th>";
+	echo "<th bgcolor=\"#CCCCFF\" align=\"center\" valign=\"middle\" width=\"1%\">"._("Id")."</th>";
 	if ($show_status) {
 		echo "<th bgcolor=\"#CCCCFF\" align=\"center\" valign=\"middle\">".$sl(3, _("Status"))."</th>";
 	}
@@ -476,6 +477,7 @@ function list_logs()
 	}
 	$now = time();
 	$i = $off;
+	$prev_build_key = null;
 	$stmt = $dbh->prepare($query);
 	if ($dist !== null) {
 		$stmt->bindValue(':dist', $dist, PDO::PARAM_STR);
@@ -512,7 +514,17 @@ function list_logs()
 			'name' => $name_url,
 			'id' => $id);
 		$u = h($url . '?' . http_build_query($url_data));
+		$build_key = $name . '|' . $id;
+		if ($prev_build_key !== null && $prev_build_key !== $build_key) {
+			echo "<tr><td colspan=\"11\" bgcolor=\"#555555\" style=\"height:2px;line-height:2px;font-size:1px;padding:0\"> </td></tr>\n";
+		}
+		$prev_build_key = $build_key;
 		echo "<tr><td bgcolor=\"#CCCCCC\" align=\"right\" valign=\"middle\">".($i+1).".</td>";
+		$short_id = $id !== '' ? (strlen($id) > 8 ? substr($id, 0, 8) : $id) : '';
+		$id_cell = $short_id !== ''
+			? "<small title=\"".h($id)."\">".h($short_id)."</small>"
+			: "-";
+		echo "<td bgcolor=\"#CCCCCC\" align=\"center\" valign=\"middle\" nowrap=\"nowrap\">$id_cell</td>";
 		if ($show_status) {
 			$status = $row_ok
 				? "<font color=\"green\"><b>"._("OK")."</b></font>"
@@ -769,7 +781,7 @@ function list_package_history($pkg_name, $cur_dist, $cur_arch, $cur_ok, $cur_id)
 				$render_row($row, $first_cell);
 			}
 			if ($group_idx < $group_count) {
-				echo "<tr><td colspan=\"9\" bgcolor=\"#000000\" style=\"height:4px;line-height:4px;font-size:1px;padding:0\"> </td></tr>\n";
+				echo "<tr><td colspan=\"10\" bgcolor=\"#555555\" style=\"height:2px;line-height:2px;font-size:1px;padding:0\"> </td></tr>\n";
 			}
 		}
 	} else {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/buildlogs.git/commitdiff/bd0e7a90706c1e8bb27b2dbd1a1428a63e6ab294



More information about the pld-cvs-commit mailing list