diff options
-rw-r--r-- | autobuild/icons/error-build_failure.png | bin | 0 -> 423 bytes | |||
-rw-r--r-- | autobuild/icons/error-install_deps_failure.png | bin | 0 -> 395 bytes | |||
-rw-r--r-- | autobuild/icons/error-missing.png | bin | 0 -> 525 bytes | |||
-rw-r--r-- | autobuild/icons/error-missing_dep.png | bin | 0 -> 698 bytes | |||
-rw-r--r-- | autobuild/icons/error-recreate_srpm_failure.png | bin | 0 -> 671 bytes | |||
-rw-r--r-- | autobuild/icons/state-fixed.png | bin | 0 -> 930 bytes | |||
-rw-r--r-- | autobuild/icons/state-new.png | bin | 0 -> 653 bytes | |||
-rw-r--r-- | autobuild/icons/state-removed.png | bin | 0 -> 842 bytes | |||
-rw-r--r-- | autobuild/index.php | 16 |
9 files changed, 10 insertions, 6 deletions
diff --git a/autobuild/icons/error-build_failure.png b/autobuild/icons/error-build_failure.png Binary files differnew file mode 100644 index 0000000..4db7de5 --- /dev/null +++ b/autobuild/icons/error-build_failure.png diff --git a/autobuild/icons/error-install_deps_failure.png b/autobuild/icons/error-install_deps_failure.png Binary files differnew file mode 100644 index 0000000..ad7d1d0 --- /dev/null +++ b/autobuild/icons/error-install_deps_failure.png diff --git a/autobuild/icons/error-missing.png b/autobuild/icons/error-missing.png Binary files differnew file mode 100644 index 0000000..c86a6b7 --- /dev/null +++ b/autobuild/icons/error-missing.png diff --git a/autobuild/icons/error-missing_dep.png b/autobuild/icons/error-missing_dep.png Binary files differnew file mode 100644 index 0000000..1793ff0 --- /dev/null +++ b/autobuild/icons/error-missing_dep.png diff --git a/autobuild/icons/error-recreate_srpm_failure.png b/autobuild/icons/error-recreate_srpm_failure.png Binary files differnew file mode 100644 index 0000000..7ab291d --- /dev/null +++ b/autobuild/icons/error-recreate_srpm_failure.png diff --git a/autobuild/icons/state-fixed.png b/autobuild/icons/state-fixed.png Binary files differnew file mode 100644 index 0000000..8966a10 --- /dev/null +++ b/autobuild/icons/state-fixed.png diff --git a/autobuild/icons/state-new.png b/autobuild/icons/state-new.png Binary files differnew file mode 100644 index 0000000..937c2a6 --- /dev/null +++ b/autobuild/icons/state-new.png diff --git a/autobuild/icons/state-removed.png b/autobuild/icons/state-removed.png Binary files differnew file mode 100644 index 0000000..6341665 --- /dev/null +++ b/autobuild/icons/state-removed.png 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"; } } |