diff options
-rw-r--r-- | index.php | 6 | ||||
-rw-r--r-- | themes/mageia/style.css | 2 |
2 files changed, 8 insertions, 0 deletions
@@ -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 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; } |