summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <dev@blino.org>2015-11-03 01:31:33 +0100
committerOlivier Blin <dev@blino.org>2015-11-03 01:31:33 +0100
commit4f0998dce3810b573266f075bf78fd36d36486e1 (patch)
tree5642bcd115176163ffd60015d1cc07780a4da07f
parentb2717138511a79ede4384438936e0fbb670d4ad2 (diff)
downloadpkgsubmit-4f0998dce3810b573266f075bf78fd36d36486e1.tar
pkgsubmit-4f0998dce3810b573266f075bf78fd36d36486e1.tar.gz
pkgsubmit-4f0998dce3810b573266f075bf78fd36d36486e1.tar.bz2
pkgsubmit-4f0998dce3810b573266f075bf78fd36d36486e1.tar.xz
pkgsubmit-4f0998dce3810b573266f075bf78fd36d36486e1.zip
List all failed arches in status result, even if build for mandatory arches is successful
-rw-r--r--index.php6
-rw-r--r--themes/mageia/style.css2
2 files changed, 8 insertions, 0 deletions
diff --git a/index.php b/index.php
index 4e42dd3..6c12131 100644
--- a/index.php
+++ b/index.php
@@ -191,6 +191,12 @@ if ($total > 0) {
: sprintf('<span class="status-box"></span> %s %s',
$typestr, $show_time);
+ $failed_arches = array_keys($p['status']['fail']);
+ if (!empty($failed_arches)) {
+ sort($failed_arches);
+ $s .= '<span class="failure"><span class="status-box"></span> ' . join(' ', $failed_arches) . '</span>';
+ }
+
$s .= '</td></tr>';
}
echo sprintf('<li><p><span class="figure">%d</span> packages submitted in the past %d&nbsp;hours:</p>', $total, $max_modified * 24);
diff --git a/themes/mageia/style.css b/themes/mageia/style.css
index d7ef081..dc6fcac 100644
--- a/themes/mageia/style.css
+++ b/themes/mageia/style.css
@@ -42,12 +42,14 @@ tr.rejected .status-box { background: orange; }
tr.todo .status-box { background: white; }
tr.building .status-box { background: yellow; }
tr.partial .status-box { background: blue; }
+span.failure > .status-box { background: red; }
.status-link { text-decoration: none; display: block; margin: 0; padding: 0; }
td.user,
td.status { white-space: nowrap; }
+tr span.failure,
tr .media,
tr .timeinfo,
tr .revision { display: block; font-size: 85%; text-align: left; }