Make history action work as per gitweb. This feels pretty messy at the moment - too...
[catagits/Gitalist.git] / root / commitdiff.tt2
1 [% PROCESS 'nav/actions.tt2' object = commit %]
2
3 <div class='commit-message'>
4 [% # XXX Wah, stuff like this doesn't work because end() isn't called as we forward to View::SyntaxHighlight
5 short_cmt(commit.comment) | html %]
6 </div>
7
8 <div class='author'>
9   [% commit.author.name | html %] [[% commit.authored_time %]]
10 </div>
11
12
13 [%
14 # In the case of merge commits there will be no diff tree.
15 IF diff_tree.size > 0;
16   INCLUDE '_diff_tree.tt2';
17 END;
18 IF diff.size > 0;
19   INCLUDE '_diff.tt2';
20 ELSE
21 %]
22 <div class='no-difference'>
23 [%
24   IF commit.parents > 1;
25     'Trivial merge';
26   ELSE;
27     'No differences found';
28   END;
29 %]
30 </div>
31 [% END %]