/[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 386 by dpavlin, Mon Aug 31 15:14:43 2009 UTC revision 401 by dpavlin, Tue Sep 8 20:21:25 2009 UTC
# Line 51  sub select { Line 51  sub select {
51                  , qq|<select type=select name=$name>|                  , qq|<select type=select name=$name>|
52                  , join("\n", map { my $selected = $_ eq $selected_option ? 'selected' : ''; qq|<option name=$_ $selected>$_</option>| } @_ )                  , join("\n", map { my $selected = $_ eq $selected_option ? 'selected' : ''; qq|<option name=$_ $selected>$_</option>| } @_ )
53                  , qq|</select>|                  , qq|</select>|
                 , qq|</form>|  
54          );          );
55  }  }
56    
# Line 100  sub conf { Line 99  sub conf {
99                                  $html =~ s{\s(\S{16}).+(\S{16})\s}{ $1..$2 };                                  $html =~ s{\s(\S{16}).+(\S{16})\s}{ $1..$2 };
100                                  chomp($html);                                  chomp($html);
101                          }                          }
102                          $html = qq|<pre style="display: inline">$html</pre>|                          $html = qq|<tt>$html</tt>|
103                          unless                          unless
104                          $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;
105                                    
106                          if ( $format =~ /edit|table/ ) {                          if ( $format =~ /edit|table/ ) {
107                                  ( $name, $html );                                  ( $name, $html );
108                          } else {                          } else {
109                                  qq|<em>$name</em> $html<br>|                                  qq|<div class="config $name"><em>$name</em> $html</div>|
110                          }                          }
111                  }                  }
112          } grep { length($conf->{$_}) > 0 } sort keys %$conf;          } grep { length($conf->{$_}) > 0 } sort keys %$conf;

Legend:
Removed from v.386  
changed lines
  Added in v.401

  ViewVC Help
Powered by ViewVC 1.1.26