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