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