Move all the templates back into the 'root' directory, otherwise make install will...
[catagits/Gitalist.git] / root / _diff.tt2
diff --git a/root/_diff.tt2 b/root/_diff.tt2
new file mode 100644 (file)
index 0000000..a2c93df
--- /dev/null
@@ -0,0 +1,14 @@
+<link rel="stylesheet" type="text/css" href="/static/css/syntax/[% language %].css"/>
+[% FOREACH item IN diff %]
+<div class='diff-head'>
+ diff --git
+ <a href='[% c.uri_for("blob", {h=item.src, f=item.file}) %]'>[% item.a %]</a>
+ <a href='[% c.uri_for("blob", {h=item.dst, f=item.file}) %]'>[% item.b %]</a>
+</div>
+<div class='diff-index'>
+ [% item.index %]
+</div>
+<div class='diff-patch'>
+ <pre>[% blobs.${loop.index} %]</pre>
+</div>
+[% END %]