X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=root%2F_diff.tt2;h=11b4199f2c11fd758292fe0be79857a9f9329505;hb=git_in_path_at_startup;hp=f67dcb6e3cacf30f54c31d886f1d7ec61764b784;hpb=2980657b3a81921f42d9ae577d42226746a720fa;p=catagits%2FGitalist.git diff --git a/root/_diff.tt2 b/root/_diff.tt2 old mode 100644 new mode 100755 index f67dcb6..11b4199 --- a/root/_diff.tt2 +++ b/root/_diff.tt2 @@ -1,14 +1,33 @@ [% INCLUDE inc/syntax_highlight_css.tt2 %] + +

Differences

+ +
+ [% FOREACH item IN diff %] -
- diff --git [%# FIXME %] - [% item.a %][% item %] - [% item.b %] + +

diff --git [%# FIXME %] + [% IF !item.src.match('^0+$') %] + [% item.a %] + [% ELSE %] + [% item.a %] + [% END %] + [% IF !item.dst.match('^0+$') %] + [% item.b %] + [% ELSE %] + [% item.b %] + [% END %] +

+ + +
+
[% blobs.${loop.index} %]
+
- [% item.index %] -
-
-
[% blobs.${loop.index} %]
+ [% item.index.replace("index","Index") %]
+ [% END %] + +
\ No newline at end of file