/[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 559 by dpavlin, Sat Feb 12 14:47:00 2011 UTC revision 560 by dpavlin, Sat Feb 12 14:54:42 2011 UTC
# Line 102  sub conf { Line 102  sub conf {
102                          } elsif ( $name eq 'kvm' ) {                          } elsif ( $name eq 'kvm' ) {
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"><div style="float:right;overflow:hidden;width:415px;height:180px"><img src="$_" style="margin: -30px 0 0 -60px"></div></a>| } split(/\s+/s,$html));                                  $html = join("\n", map { my $url = $_; $url =~ s/-d\w+\.\w+$/.html/; qq|<a href="$url"><div style="float:left;overflow:hidden;width:415px;height:180px"><img src="$_" style="margin: -30px 0 0 -60px"></div></a>| } split(/\s+/s,$html));
106                          } elsif ( $name eq 'ports' ) {                          } elsif ( $name eq 'ports' ) {
107                                  $html =~ s{\b(\S+)\t(\S+)\t(\S+)\b}{<b title="$1/$2">$3</b> }gs;                                  $html =~ s{\b(\S+)\t(\S+)\t(\S+)\b}{<b title="$1/$2">$3</b> }gs;
108                          } else {                          } else {

Legend:
Removed from v.559  
changed lines
  Added in v.560

  ViewVC Help
Powered by ViewVC 1.1.26