summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2003-11-12 08:30:51 +0000
committerdes <des@FreeBSD.org>2003-11-12 08:30:51 +0000
commit3e53bd520cedddf9aa0d7834dacb1e41a73ce6c2 (patch)
tree6721c8ce119e856dde4fa718a90b8124d1bb58cc /tools
parent7069ced79f68a9c2ab133a3805fc30bd17da1d9d (diff)
downloadFreeBSD-src-3e53bd520cedddf9aa0d7834dacb1e41a73ce6c2.zip
FreeBSD-src-3e53bd520cedddf9aa0d7834dacb1e41a73ce6c2.tar.gz
Use graded colors to more clearly indicate relative age.
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/tinderbox/www/index.cgi6
-rw-r--r--tools/tools/tinderbox/www/tb.css38
2 files changed, 24 insertions, 20 deletions
diff --git a/tools/tools/tinderbox/www/index.cgi b/tools/tools/tinderbox/www/index.cgi
index 6866400..7fea1d8 100644
--- a/tools/tools/tinderbox/www/index.cgi
+++ b/tools/tools/tinderbox/www/index.cgi
@@ -121,8 +121,10 @@ MAIN:{
if (-f "$DIR/$log.brief") {
my @stat = stat("$DIR/$log.brief");
my $class = success("$DIR/$log.brief") ? "ok" : "fail";
- $class .= "-stale"
- if ($now - $stat[9] > $STALE);
+ my $age = int($now - $stat[9] / 7200);
+ $age = 9
+ if ($age > 9);
+ $class .= "-$age";
$links .= "<span class=\"$class\">" .
strftime("%Y-%m-%d %H:%M&nbsp;UTC", gmtime($stat[9])) .
"</span><br />";
diff --git a/tools/tools/tinderbox/www/tb.css b/tools/tools/tinderbox/www/tb.css
index f2de8e9..ae43336 100644
--- a/tools/tools/tinderbox/www/tb.css
+++ b/tools/tools/tinderbox/www/tb.css
@@ -32,25 +32,27 @@ A:active {
font-style: italic;
}
-.ok {
- background-color: white;
- color: #070;
-}
-
-.ok-stale {
- background-color: white;
- color: #797;
-}
+.ok-0 { background-color: white; color: #007700; }
+.ok-1 { background-color: white; color: #117B11; }
+.ok-2 { background-color: white; color: #227F22; }
+.ok-3 { background-color: white; color: #338333; }
+.ok-4 { background-color: white; color: #448744; }
+.ok-5 { background-color: white; color: #558B55; }
+.ok-6 { background-color: white; color: #668F66; }
+.ok-7 { background-color: white; color: #779377; }
+.ok-8 { background-color: white; color: #889788; }
+.ok-9 { background-color: white; color: #999B99; }
-.fail {
- background-color: white;
- color: #f00;
-}
-
-.fail-stale {
- background-color: white;
- color: #f99;
-}
+.fail-0 { background-color: white; color: #ff0000; }
+.fail-1 { background-color: white; color: #ff1111; }
+.fail-2 { background-color: white; color: #ff2222; }
+.fail-3 { background-color: white; color: #ff3333; }
+.fail-4 { background-color: white; color: #ff4444; }
+.fail-5 { background-color: white; color: #ff5555; }
+.fail-6 { background-color: white; color: #ff6666; }
+.fail-7 { background-color: white; color: #ff7777; }
+.fail-8 { background-color: white; color: #ff8888; }
+.fail-9 { background-color: white; color: #ff9999; }
TD, TH {
width: 16ex;
OpenPOWER on IntegriCloud