[cisco-stats] Removed '<strike>' tags for shutdown interfaces in favour of CSS styles
authorMaximilian Wilhelm <max@rfc2324.org>
Sat, 5 Jan 2008 21:53:12 +0000 (22:53 +0100)
committerMaximilian Wilhelm <max@rfc2324.org>
Sat, 5 Jan 2008 21:53:12 +0000 (22:53 +0100)
  As everything else is done via CSS styles removed the '<strike>' tags used
  to highlight shutdown interfaces and use 'text-decoration: line-through'
  instead.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

cisco-stats/generate_cisco_port_configuration_overview

index eddec30..1a1d4c5 100755 (executable)
@@ -327,6 +327,12 @@ print '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1
                text-align: center;
                vertical-align: middle;
          }
+
+         .x_linethrough {
+               text-align: center;
+               vertical-align: middle;
+               text-decoration: line-through;
+         }
         </style>
 
 
@@ -395,9 +401,11 @@ foreach my $int_type (sort keys %{$interfaces}) {
 
                        # Print X'es
                        foreach my $vlan_id (@vlan_list) {
-                               print " <td class=\"x\">";
-
-                               print "<strike>" if ($int_ref->{disabled});
+                               if ($int_ref->{disabled}) {
+                                       print " <td class=\"x_linethrough\">";
+                               } else {
+                                       print " <td class=\"x\">";
+                               }
 
                                if (($int_ref->{mode} eq 'access' && $int_ref->{access_vlan} == $vlan_id) ||
                                    ($int_ref->{mode} eq 'trunk' && (! defined $int_ref->{trunk_allowed_vlans} || grep {/^$vlan_id$/} @{$int_ref->{trunk_allowed_vlans}})) )  {
@@ -406,8 +414,6 @@ foreach my $int_type (sort keys %{$interfaces}) {
                                        print " &nbsp; ";
                                }
 
-                               print "</strike>" if ($int_ref->{disabled});
-
                                print "</td> ";
                        }