From c1e427c364784576e37fc792e59d21ee38655c09 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 4 Dec 2018 10:56:05 +0100 Subject: buildmaster/index.php: links should be filtering by architecture, too --- buildmaster/index.php | 49 ++++++++++++++++++++++++++++--------------------- 1 file changed, 28 insertions(+), 21 deletions(-) (limited to 'buildmaster/index.php') diff --git a/buildmaster/index.php b/buildmaster/index.php index 57e3e0f..970bd3a 100644 --- a/buildmaster/index.php +++ b/buildmaster/index.php @@ -2,23 +2,30 @@ require_once "../init.php"; require_once BASE . "/lib/mysql.php"; -$arch = ""; -if (array_key_exists("arch",$_GET)) { - $arch = $_GET["arch"]; - switch ($arch) { - case "any": - $title = "architecture independent packages"; - break; - case "i486": - $title = "i486"; - break; - case "i686": - $title = "i686"; - break; - default: - $title = "all architectures"; - $arch = ""; - } +if (!array_key_exists("arch",$_GET)) + $_GET["arch"]="i686"; + +$arch = $_GET["arch"]; +switch ($arch) { + case "any": + $title = "architecture independent packages"; + break; + case "i486": + $title = "i486"; + break; + case "i686": + $title = "i686"; + break; + default: + $title = "all architectures"; + $arch = ""; +} +if ($arch != "") { + $sarch_param = "?arch=" . urlencode($arch); + $march_param = "&arch=" . urlencode($arch); +} else { + $sarch_param = ""; + $march_param = ""; } ?> @@ -28,10 +35,10 @@ if (array_key_exists("arch",$_GET)) { - build list + build list as graph -- - broken packages -- - buildable packages
+ broken packages -- + buildable packages
build-slaves -- gpg-keys -- status
@@ -49,7 +56,7 @@ if (array_key_exists("arch",$_GET)) { blacklisted packages -- packages to be deleted and links between them
- ">
+