summaryrefslogtreecommitdiff
path: root/buildmaster
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-12-04 10:56:05 +0100
committerErich Eckner <git@eckner.net>2018-12-04 10:56:05 +0100
commitc1e427c364784576e37fc792e59d21ee38655c09 (patch)
tree64842c93a4cdf94427b979aa0a8ecb78347c01f6 /buildmaster
parent175ce5e77cbf53278b67c7c49230a77e232046d1 (diff)
downloadarchweb32-c1e427c364784576e37fc792e59d21ee38655c09.tar.xz
buildmaster/index.php: links should be filtering by architecture, too
Diffstat (limited to 'buildmaster')
-rw-r--r--buildmaster/index.php49
1 files changed, 28 insertions, 21 deletions
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)) {
</head>
<body>
<?php show_warning_on_offline_slave(); ?>
- <a href="/buildmaster/build-list.php">build list</a>
+ <a href="/buildmaster/build-list.php<?php print $sarch_param; ?>">build list</a>
as <a href="/buildmaster/build-list-links.php">graph</a> --
- <a href="/buildmaster/build-list.php?broken=Broken">broken packages</a> --
- <a href="/buildmaster/build-list.php?next=Can">buildable packages</a><br>
+ <a href="/buildmaster/build-list.php?broken=Broken<?php print $march_param; ?>">broken packages</a> --
+ <a href="/buildmaster/build-list.php?next=Can<?php print $march_param; ?>">buildable packages</a><br>
<a href="/buildmaster/build-slaves.php">build-slaves</a> --
<a href="/buildmaster/gpg-keys.php">gpg-keys</a> --
<a href="/buildmaster/status.php">status</a><br>
@@ -49,7 +56,7 @@ if (array_key_exists("arch",$_GET)) {
<a href="/buildmaster/blacklist.php">blacklisted packages</a> --
<a href="/buildmaster/to-delete.php">packages to be deleted</a>
and <a href="/buildmaster/deletion-links.php">links between them</a><br>
- <img src="/buildmaster/statistics.php?log<?php if ($arch != "") print "&arch=" . urlencode($_GET["arch"]); ?>"><br>
+ <img src="/buildmaster/statistics.php?log<?php print $march_param; ?>"><br>
<?php
foreach (array("any", "i486", "i686", "") as $a) {