Made the blame view a bit more informative.
[catagits/Gitalist.git] / root / commit.tt2
1 [% INCLUDE 'nav/actions.tt2' object = commit %]
2
3 <div class='commit-message'>
4 [%
5   short_cmt(commit.comment) | html;
6   INCLUDE '_refs.tt2' object = commit;
7 %]
8 </div>
9 <!-- [% USE dumper; dumper.dump(commit.parents) %] -->
10 <dl class='commit-info'>
11  <dt>author</dt>
12   <dd>[% commit.author.name | html %] &lt;[% commit.author.email %]&gt;<br/>
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>
20   <dd>[% commit.tree_sha1 %]
21       <span class='action-list'><a href="[% c.uri_for("tree", {h=commit.tree_sha1, hb=commit.sha1}) %]">tree</a></span>
22   </dd>
23  [% FOREACH parent IN commit.parents %]
24  <dt>parent</dt>
25   <dd>[% parent.sha1  %]
26     <span class='action-list'>
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>
30    </dd>
31  [% END %]
32 </dl>
33
34 <pre class='commit-message'>[% commit.comment | html%]</pre>
35
36 [%
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;
41 %]