From e1926db84523f49921da8af657682e8668583bf7 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 26 Apr 2018 16:22:25 +0200 Subject: buildmaster/build-list.php: adopt layout from packages list --- buildmaster/build-list.php | 110 ++++++++++++++++++++++++++++----------------- 1 file changed, 68 insertions(+), 42 deletions(-) diff --git a/buildmaster/build-list.php b/buildmaster/build-list.php index 7087128..74916b4 100644 --- a/buildmaster/build-list.php +++ b/buildmaster/build-list.php @@ -1,6 +1,7 @@ num_rows > 0) { $rows[$count]["pkgbase_print"] = $rows[$count]["pkgbase"]; else $rows[$count]["pkgbase_print"] = "(" . $rows[$count]["pkgbase"] . ")"; + $rows[$count]["pkgbase_print"] = + "" . + $rows[$count]["pkgbase_print"] . + ""; if ($row["uses_upstream"]) { $rows[$count]["git_revision"] = " num_rows > 0) { } -?> - - - "pkgbase_print", + "git revision" => "git_revision", + "modification git revision" => "mod_git_revision", + "package repository" => "package_repository", + "commit time" => "commit_time", + "compilations" => "trials", + "loops" => "loops", + "build error" => "fail_reasons", + "blocked" => "is_blocked", + "handed out to" => "build_slave" +); + +print_header("Build List"); -print "List of " . $to_show . " package builds\n"; -print "\n"; -print "\n"; -print "\n"; show_warning_on_offline_slave(); -print "Start page\n"; + print "build logs
\n"; if ($count > 0) { @@ -186,41 +199,54 @@ if ($count > 0) { } ); - print "\n"; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print "\n"; - - foreach($rows as $row) { - - print ""; - - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - - print "\n"; +?> +
+
packagegit revisionmodification git revisionpackage repositorycommit timecompilationsloopsbuild errorblockedhanded out to
".$row["pkgbase_print"]."

".$row["git_revision"]."

".$row["mod_git_revision"]."

".$row["package_repository"]."".$row["commit_time"]."".$row["trials"]."".$row["loops"]."".$row["fail_reasons"]."".$row["is_blocked"]."".$row["build_slave"]."
+ + + $content) { + + print " \n"; + +} + +?> + + + +\n"; + + foreach ($columns as $title => $content) { + + print " \n"; + } + print " \n"; + + if ($oddity == "odd" ) + $oddity = "even"; + else + $oddity = "odd"; - print "
\n"; + print " " . $title . "\n"; + print "
\n"; + print " " . $row[$content] . "\n"; + print "
\n"; } ?> - - + + + +Erich Eckner."); -- cgit v1.2.3-70-g09d2