From 5e62823b5cb66f21e27711f9fa88622e1d4a8e22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Thu, 15 May 2003 08:44:18 +0000 Subject: [PATCH] Don't show platforms for which we have no logs. --- tools/tools/tinderbox/www/index.cgi | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tools/tools/tinderbox/www/index.cgi b/tools/tools/tinderbox/www/index.cgi index a4065ce186a1..42a793ba2117 100644 --- a/tools/tools/tinderbox/www/index.cgi +++ b/tools/tools/tinderbox/www/index.cgi @@ -96,7 +96,8 @@ MAIN:{ foreach my $arch (sort(keys(%ARCHES))) { foreach my $machine (sort(@{$ARCHES{$arch}})) { - print " + my $have_logs = 0; + my $html = " $arch $machine "; @@ -122,12 +123,15 @@ MAIN:{ "
"; } if ($links eq "") { - print(" n/a\n"); + $html .= " n/a\n"; } else { - print(" $links\n"); + $html .= " $links\n"; + $have_logs++; } } - print " \n"; + $html .= " \n"; + print $html + if $have_logs > 0; } } my $date = strftime("%Y-%m-%d %H:%M GMT", gmtime());