Sorted out diffs so that diffing against parents, diffing merges and other such vecto...
[catagits/Gitalist.git] / templates / commitdiff.tt2
CommitLineData
2247133f 1[% PROCESS 'commit-nav.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
2247133f 11
ad8884fc 12[%
13# In the case of merge commits there will be no diff tree.
14IF diff_tree.size > 0;
15 INCLUDE '_diff_tree.tt2';
16END;
17IF diff.size > 0;
18 INCLUDE '_diff.tt2';
19ELSE
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 %]