Merge branch 'master' of git.shadowcat.co.uk:Gitalist
[catagits/Gitalist.git] / root / commit.tt2
CommitLineData
61b56ed6 1[% INCLUDE 'nav/actions.tt2' object = commit %]
2247133f 2
2cf1e781 3<div class='content'>
4 <div class='commit-message'>
5 [%
6 short_cmt(commit.comment) | html;
7 INCLUDE '_refs.tt2' object = commit;
8 %]
9 </div>
10 <!-- [% USE dumper; dumper.dump(commit.parents) %] -->
11 <dl class='commit-info'>
12 <dt>author</dt>
13 <dd>[% commit.author.name | html %] &lt;[% commit.author.email %]&gt;<br/>
14 [% commit.authored_time %]</dd>
15 <dt>committer</dt>
16 <dd>[% commit.committer.name %] &lt;[% commit.committer.email %]&gt;<br/>
17 [% commit.committed_time %]</dd>
18 <dt>commit</dt>
19 <dd>[% commit.sha1 %]</dd>
20 <dt>tree</dt>
21 <dd>[% commit.tree_sha1 %]
22 <span class='action-list'><a href="[% c.uri_for("tree", {h=commit.tree_sha1, hb=commit.sha1}) %]">tree</a></span>
23 </dd>
24 [% FOREACH parent IN commit.parents %]
25 <dt>parent</dt>
26 <dd>[% parent.sha1 %]
27 <span class='action-list'>
28 <a href="[% c.uri_for("commit", {h=parent.sha1}) %]">commit</a>
29 <a href="[% c.uri_for("commitdiff", {hp=parent.sha1, h=commit.sha1}) %]">diff</a>
30 </span>
31 </dd>
32 [% END %]
33 </dl>
1ef8dc7d 34
2cf1e781 35 <pre class='commit-message'>[% commit.comment | html%]</pre>
b3ad9e63 36
2cf1e781 37 [%
38 # In the case of merge commits there will be no diff tree.
39 IF diff_tree.size > 0;
40 INCLUDE '_diff_tree.tt2';
41 END;
42 %]
43</div>