From ea69cc72ef9d88c4ecb9280b36d840f55f3f65f5 Mon Sep 17 00:00:00 2001 From: "mcafee%netscape.com" Date: Fri, 21 Jul 2000 04:55:45 +0000 Subject: [PATCH] Changing default of nocrap=1 to legend=0. This both renames nocrap and flips the default behaviour. Most of us don't need to see this stuff by default. --- webtools/tinderbox/README | 2 +- webtools/tinderbox/showbuilds.cgi | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/webtools/tinderbox/README b/webtools/tinderbox/README index 3051eaa06d5..c87de1685a5 100644 --- a/webtools/tinderbox/README +++ b/webtools/tinderbox/README @@ -110,7 +110,7 @@ These modes do not show on my browser: static=1 These are self explanatory: - nocrap=1; + legend=0; hours=n; diff --git a/webtools/tinderbox/showbuilds.cgi b/webtools/tinderbox/showbuilds.cgi index c24483f3e4e..20bf6d0498b 100755 --- a/webtools/tinderbox/showbuilds.cgi +++ b/webtools/tinderbox/showbuilds.cgi @@ -120,7 +120,7 @@ sub show_tree_selector { sub do_static { local *OUT; - $form{nocrap}=1; + $form{legend}=0; my @pages = ( ['index.html', 'do_tinderbox'], ['flash.rdf', 'do_flash'], @@ -183,7 +183,7 @@ sub print_page_head { # Quote and Lengend # - unless ($form{nocrap}) { + if ($form{legend}) { my ($imageurl,$imagewidth,$imageheight,$quote) = &get_image; print qq{ @@ -405,7 +405,7 @@ sub print_table_header { my $last_status = tb_last_status($ii); if ($last_status eq 'busted') { - if ($form{nocrap}) { + unless ($form{legend}) { print ""; } else { print "
$bn"; @@ -430,12 +430,12 @@ sub print_table_footer { print "
\n"; my $nextdate = $maxdate - $hours*60*60; - print &open_showbuilds_href(maxdate=>"$nextdate", nocrap=>'1') + print &open_showbuilds_href(maxdate=>"$nextdate", legend=>'0') ."Show previous $hours hours
"; if ($hours != 24) { my $save_hours = $hours; $hours = 24; - print &open_showbuilds_href(maxdate=>"$nextdate", nocrap=>'1') + print &open_showbuilds_href(maxdate=>"$nextdate", legend=>'0') ."Show previous 24 hours"; $hours = $save_hours; } @@ -445,7 +445,7 @@ sub print_table_footer { sub open_showbuilds_url { my %args = ( - nocrap => "$form{nocrap}", + legend => "$form{legend}", @_ );