/[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 1175 by dpavlin, Tue Jun 30 21:39:09 2009 UTC revision 1176 by dpavlin, Tue Jul 7 12:28:59 2009 UTC
# Line 120  sub diff_as_markup { Line 120  sub diff_as_markup {
120                  my ( $path, $action ) = @_;                  my ( $path, $action ) = @_;
121                  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>|;
122          };          };
123          $diff =~ s{^(===\s+)(\S+)$}{$1 . form($2,'revert') . qq| <a name="$2" target="editor" href="/editor+$2+1">$2</a> | . form($2,'postpone') }gem;          $diff =~ s{(^|<pre>)(===\s+)(\S+)$}{$1 . $2 . form($3,'revert') . qq| <a name="$3" target="editor" href="/editor+$3+1">$3</a> | . form($3,'postpone') }gem;
124    
125          warn "diff_as_markup ",length($diff)," bytes";          warn "diff_as_markup ",length($diff)," bytes";
126          return $diff;          return $diff;

Legend:
Removed from v.1175  
changed lines
  Added in v.1176

  ViewVC Help
Powered by ViewVC 1.1.26