c23283a403a9b4226c7d46e317cb27e5aa19d52c
[catagits/Gitalist.git] / root / fragment / commit / commit.tt2
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><img style="float: left; padding-right: 10px" src="[% uri_for_gravatar(Commit.committer.email, 40) %]">[% Commit.author.name | html %] &lt;[% Commit.author.email %]&gt;<br/>
11         [% time_since(Commit.authored_time) %]</dd>
12    <dt style="clear: left">committer</dt>
13     <dd><img style="float: left; padding-right: 10px" src="[% uri_for_gravatar(Commit.committer.email, 40) %]">[% Commit.committer.name %] &lt;[% Commit.committer.email %]&gt;<br/>
14         [% time_since(Commit.committed_time) %]</dd>
15    <dt style="clear: left">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_action("/commit/tree", c.req.captures) %]">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_action('/commit/commit', [Repository.name, parent.sha1]) %]">commit</a>
26        <a href="[% c.uri_for_action('/commit/diff_fancy', [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 && diff_tree.size > 0;
37       INCLUDE '_diff_tree.tt2';
38     END;
39   %]