/[pxelator]/lib/PXElator/html.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/PXElator/html.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 556 by dpavlin, Thu Aug 26 19:27:49 2010 UTC revision 557 by dpavlin, Thu Jan 13 09:53:45 2011 UTC
# Line 103  sub conf { Line 103  sub conf {
103                                  $html = qq|<a href="/start_stop/kvm?nr=$html">$html</a>|;                                  $html = qq|<a href="/start_stop/kvm?nr=$html">$html</a>|;
104                          } elsif ( $name eq 'munin' ) {                          } elsif ( $name eq 'munin' ) {
105                                  $html = join("\n", map { my $url = $_; $url =~ s/-d\w+\.\w+$/.html/; qq|<a href="$url"><img src="$_"></a>| } split(/\s+/s,$html));                                  $html = join("\n", map { my $url = $_; $url =~ s/-d\w+\.\w+$/.html/; qq|<a href="$url"><img src="$_"></a>| } split(/\s+/s,$html));
106                          }                          } elsif ( $name eq 'ports' ) {
107                          $html = qq|<tt>$html</tt>|                                  $html =~ s{\b(\S+)\t(\S+)\t(\S+)\b}{<b title="$1/$2">$3</b> }gs;
108                          unless                          } else {
109                          $html =~ s{\b(\S+)\t(\S+)\t(\S+)\b}{<b title="$1/$2">$3</b> }gs;                                  $html = qq|<tt>$html</tt>|;
110                            };
111                                    
112                          if ( $format =~ /edit|table/ ) {                          if ( $format =~ /edit|table/ ) {
113                                  ( $name, $html );                                  ( $name, $html );

Legend:
Removed from v.556  
changed lines
  Added in v.557

  ViewVC Help
Powered by ViewVC 1.1.26