From 0f38b455d2147e4d1ab77d051a3a7e17ce2542eb Mon Sep 17 00:00:00 2001 From: des Date: Wed, 12 Nov 2003 08:30:51 +0000 Subject: [PATCH] Use graded colors to more clearly indicate relative age. --- tools/tools/tinderbox/www/index.cgi | 6 +++-- tools/tools/tinderbox/www/tb.css | 38 +++++++++++++++-------------- 2 files changed, 24 insertions(+), 20 deletions(-) diff --git a/tools/tools/tinderbox/www/index.cgi b/tools/tools/tinderbox/www/index.cgi index 686640040f0f..7fea1d875265 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 .= "" . strftime("%Y-%m-%d %H:%M UTC", gmtime($stat[9])) . "
"; diff --git a/tools/tools/tinderbox/www/tb.css b/tools/tools/tinderbox/www/tb.css index f2de8e939f18..ae433365b16a 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-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; } -.ok-stale { - background-color: white; - color: #797; -} - -.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;