Move all the templates back into the 'root' directory, otherwise make install will...
[catagits/Gitalist.git] / root / commitdiff.tt2
1 [% PROCESS 'nav/actions.tt2' object = commit %]
2
3 <div class='commit-message'>
4 [% commit.comment.substr(0, 85) %] ...
5 </div>
6
7 <div class='author'>
8   [% commit.author.name | html %] [[% commit.authored_time %]]
9 </div>
10
11
12 [%
13 # In the case of merge commits there will be no diff tree.
14 IF diff_tree.size > 0;
15   INCLUDE '_diff_tree.tt2';
16 END;
17 IF diff.size > 0;
18   INCLUDE '_diff.tt2';
19 ELSE
20 %]
21 <div class='no-difference'>
22 [%
23   IF commit.parents > 1;
24     'Trivial merge';
25   ELSE;
26     'No differences found';
27   END;
28 %]
29 </div>
30 [% END %]