]> git.etc.gen.nz Git - spong.git/commitdiff
removed host group URL generation from html displays (problems with href targets)
authorStephen L Johnson <sjohnson@monsters.org>
Thu, 24 Feb 2000 15:15:12 +0000 (15:15 +0000)
committerStephen L Johnson <sjohnson@monsters.org>
Thu, 24 Feb 2000 15:15:12 +0000 (15:15 +0000)
src/lib/Spong/HostGroups.pm

index e57bba886adf9eb40163a5987e65791cd449ac2b..f9f9d063be4b30d2fd3a09f0fc92dfeb8f08c2dd 100755 (executable)
@@ -214,7 +214,7 @@ sub display_html {
          my $grname = $main::GROUPS{$name}->{'name'};
         
         print "<tr><td align=left bgcolor=#ffffff nowrap>\n";
-        print "<a href=\"!!WWWSPONG!!/group/$name\">$grname</a></td>\n";
+        print "<a href=\"!!WWWSPONG!!/full/overview/$name\">$grname</a></td>\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 "<strong>Group - $grname</strong>\n";
+#         print "<a href=\"$main::WWWSPONG/group/$name\">";
+         print "<strong>Group - $grname</strong>";
+#         print "</a>\n";
          $group->display_html("standard");
        
          print "\n<HR>\n";
@@ -310,12 +312,13 @@ sub display_problems {
 
    if ( $problems ) {
       foreach my $group ( $badgroups->groups() ) {
-         my $name = $group->name();
-         print "<p><a href=\"$main::WWWSPONG/group/$name\"><b>" 
+         my $name = $main::GROUPS{$group->name()}->{'name'};
+         print "<b>" 
             if $type eq "html";
-         print "Group: $name\n";
-         print "</b></a><p>"                   if $type eq "html";
+         print "<strong>Group: $name</strong>\n";
+         print "</b><p>"                   if $type eq "html";
          $group->display( $type, $format );
+         print "<hr align=left width=25%>\n";
       }
    } else {
       if( $format eq "full" ) {