From: Stephen L Johnson Date: Thu, 24 Feb 2000 15:15:12 +0000 (+0000) Subject: removed host group URL generation from html displays (problems with href targets) X-Git-Tag: spong-2_7-alpha5~68 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=767bafcd991c498f84ccd478737b383ff6141833;p=spong.git removed host group URL generation from html displays (problems with href targets) --- diff --git a/src/lib/Spong/HostGroups.pm b/src/lib/Spong/HostGroups.pm index e57bba8..f9f9d06 100755 --- a/src/lib/Spong/HostGroups.pm +++ b/src/lib/Spong/HostGroups.pm @@ -214,7 +214,7 @@ sub display_html { my $grname = $main::GROUPS{$name}->{'name'}; print "\n"; - print "$grname\n"; + print "$grname\n"; foreach $service ( @names ) { my $color = $group->services_color( $service ); @@ -261,13 +261,15 @@ sub display_html { foreach $service ( sort keys %main::SERVICES ) { push( @names, $service ) unless $service eq "ping"; } - # Run though reach group and print the hosts for each group + # Run though each group and print the hosts for each group foreach $group ( $self->groups() ) { my $name = $group->name(); my $grname = $main::GROUPS{$name}->{'name'}; # Display the host group table - print "Group - $grname\n"; +# print ""; + print "Group - $grname"; +# print "\n"; $group->display_html("standard"); print "\n
\n"; @@ -310,12 +312,13 @@ sub display_problems { if ( $problems ) { foreach my $group ( $badgroups->groups() ) { - my $name = $group->name(); - print "

" + my $name = $main::GROUPS{$group->name()}->{'name'}; + print "" if $type eq "html"; - print "Group: $name\n"; - print "

" if $type eq "html"; + print "Group: $name\n"; + print "

" if $type eq "html"; $group->display( $type, $format ); + print "


\n"; } } else { if( $format eq "full" ) {