Starting to streamline and generally rejig the layout.
[catagits/Gitalist.git] / root / commit.tt2
1 [% INCLUDE 'nav/actions.tt2' object = commit %]
2
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>
34
35   <pre class='commit-message'>[% commit.comment | html%]</pre>
36
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>