Fix links in tree view to not point at fragments
[catagits/Gitalist.git] / root / fragment / commit / commit.tt2
CommitLineData
86692bbb 1<div class='commit-message'>
2 [%
3 short_cmt(Commit.comment) | html;
4 INCLUDE '_refs.tt2' object = commit;
5 %]
6 </div>
7 <!-- [% USE dumper; dumper.dump(commit.parents) %] -->
8 <dl class='commit-info'>
9 <dt>author</dt>
10 <dd>[% Commit.author.name | html %] &lt;[% Commit.author.email %]&gt;<br/>
11 [% Commit.authored_time %]</dd>
12 <dt>committer</dt>
13 <dd>[% Commit.committer.name %] &lt;[% Commit.committer.email %]&gt;<br/>
14 [% Commit.committed_time %]</dd>
15 <dt>commit</dt>
16 <dd>[% Commit.sha1 %]</dd>
17 <dt>tree</dt>
18 <dd>[% Commit.tree_sha1 %]
19 <span class='action-list'><a href="[% c.uri_for(c.controller.action_for("tree"), c.req.captureargs) %]">tree</a></span>
20 </dd>
21 [% FOREACH parent IN Commit.parents %]
22 <dt>parent</dt>
23 <dd>[% parent.sha1 %]
24 <span class='action-list'>
25 <a href="[% c.uri_for(c.action, [Repository.name, parent.sha1]) %]">commit</a>
26 <a href="[% c.uri_for(c.controller.action_for('diff'), [Repository.name, parent.sha1]) %]">diff</a>
27 </span>
28 </dd>
29 [% END %]
30 </dl>
31
32 <pre class='commit-message'>[% Commit.comment | html%]</pre>
33
34 [%
35 # In the case of merge commits there will be no diff tree.
36 IF diff_tree.size > 0;
37 INCLUDE '_diff_tree.tt2';
38 END;
39 %]