diff options
author | Pascal Terjan <pterjan@mageia.org> | 2012-12-27 21:22:04 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2012-12-27 21:22:04 +0000 |
commit | 550639882afed3753201cc7578efee43663d36b6 (patch) | |
tree | 81382184d9ba3c3cf90b15c3ec230f840252705f /autobuild/index.php | |
parent | 3db9c530ac21968aa87a7864b611a446877d0377 (diff) | |
download | pkgsubmit-550639882afed3753201cc7578efee43663d36b6.tar pkgsubmit-550639882afed3753201cc7578efee43663d36b6.tar.gz pkgsubmit-550639882afed3753201cc7578efee43663d36b6.tar.bz2 pkgsubmit-550639882afed3753201cc7578efee43663d36b6.tar.xz pkgsubmit-550639882afed3753201cc7578efee43663d36b6.zip |
Use icons (stolen from gnome)
Diffstat (limited to 'autobuild/index.php')
-rw-r--r-- | autobuild/index.php | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/autobuild/index.php b/autobuild/index.php index c88c75d..5bdf2b5 100644 --- a/autobuild/index.php +++ b/autobuild/index.php @@ -119,18 +119,22 @@ echo "$nb_fixed packages have been fixed since this run and $nb_removed have bee echo "<div style='float:left'><h1>Failed builds ($nb_failed/$nb_tried):</h1><ul>"; foreach ($failure as $rpm => $error) { - $status = ""; + $status_html = ""; if ($fixed[$rpm]) { - $status = " <span style='color:green;'><b>Fixed!</b></span>"; + $status_html = " <img src='icons/state-fixed.png' title='Fixed!' />"; } elseif ($removed[$rpm]) { - $status = " <span style='color:yellow;'><b>Removed</b></span>"; + $status_html = " <img src='icons/state-removed.png' title='Removed' />"; } elseif ($prev && !$prev_failure[$rpm]) { - $status = " <span style='color:red;'><b>New!</b></span>"; + $status_html = " <img src='icons/state-new.png' title='New!' />"; + } + $error_html = $error; + if (file_exists("icons/error-$error.png")) { + $error_html = "<img src='icons/error-$error.png' title='$error'/>"; } if (file_exists("$base_dir/$rpm/")) { - echo "<li><a href='$base_dir/$rpm/'>$rpm</a> $error $status</li>\n"; + echo "<li>$error_html <a href='$base_dir/$rpm/'>$rpm</a> $status_html</li>\n"; } else { - echo "<li>$rpm $error $status</li>\n"; + echo "<li>$error_html $rpm $status_html</li>\n"; } } |