/[Frey]/trunk/lib/Frey/SVK.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 /trunk/lib/Frey/SVK.pm

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

revision 772 by dpavlin, Tue Dec 9 20:31:29 2008 UTC revision 773 by dpavlin, Tue Dec 9 20:31:34 2008 UTC
# Line 111  sub diff_as_markup { Line 111  sub diff_as_markup {
111    
112          $diff = $self->html_escape( $diff );          $diff = $self->html_escape( $diff );
113          $self->add_css( qq|          $self->add_css( qq|
114            pre span.add,
115            pre span.del {
116                    float: left;
117                    width: 100%;
118            }
119          pre span.add { background: #dfd }          pre span.add { background: #dfd }
120          pre span.del { background: #fdd }          pre span.del { background: #fdd }
121          pre form.inline { display: inline }          pre form.inline { display: inline }
122          | );          | );
123          $diff =~ s{^(\+.+?)$}{<span class="add">$1</span>}gm;          $diff =~ s{^(\+.*?)$}{<span class="add">$1</span>}gm;
124          $diff =~ s{^(\-.+?)$}{<span class="del">$1</span>}gm;          $diff =~ s{^(\-.*?)$}{<span class="del">$1</span>}gm;
125          sub form {          sub form {
126                  my ( $path, $action ) = @_;                  my ( $path, $action ) = @_;
127                  qq|<form class="inline" method="post"><input type="hidden" name="path" value="$path"><input type="submit" name="action" value="$action"></form>|;                  qq|<form class="inline" method="post"><input type="hidden" name="path" value="$path"><input type="submit" name="action" value="$action"></form>|;

Legend:
Removed from v.772  
changed lines
  Added in v.773

  ViewVC Help
Powered by ViewVC 1.1.26