--- lib/PXElator/html.pm 2009/08/27 14:31:49 307 +++ lib/PXElator/html.pm 2009/08/29 22:10:55 354 @@ -45,6 +45,7 @@ sub select { my $name = shift; my $selected_option = shift; + unshift @_, '' unless $selected_option; return join("\n" , qq|| ) + } else { + if ( $name eq 'amt' ) { + $html = qq|logon|; + } elsif ( $name eq 'ssh' ) { + $html =~ s{\s(\S{16}).+(\S{16})\s}{ $1..$2 }; + } + $html = qq|
$html
| + unless + $html =~ s{\b(\S+)\t(\S+)\t(\S+)\b}{$3 }gs; + + if ( $format =~ /edit|table/ ) { + ( $name, $html ); + } else { + qq|$name $html
| + } + } + } keys %$conf; + + $format eq 'inline' ? join("\n", @opts) : @opts; +} + warn "loaded"; 1;