Made SyntaxHighlight more generic so /commitdiff now gets highlighting too.
[catagits/Gitalist.git] / templates / _diff.tt2
index 5ae8d91..7450a77 100644 (file)
@@ -1,3 +1,4 @@
+<link rel="stylesheet" type="text/css" href="/static/css/syntax/[% language %].css"/>
 [% FOREACH item IN diff %]
 <div class='diff-head'>
  diff --git
@@ -8,6 +9,6 @@
  [% item.index %]
 </div>
 <div class='diff-patch'>
- <pre>[% item.diff | html %]</pre>
+ <pre>[% blobs.${loop.index} %]</pre>
 </div>
 [% END %]