1 <table class="listing">
13 <td class='sha1' title='[% Commit.sha1 %]'>[% INCLUDE 'inc/chroma_hash.tt2' sha1 = Commit.sha1.substr(0, 7) %]</td>
14 <td class='time-since'>[% time_since(Commit.authored_time) %]</td>
16 [% Commit.comment | html%]
19 INCLUDE '_refs.tt2' object = commit;
21 <td class='author'><a href="mailto:[% Commit.author.email %]" title="Email"><img style="float: left; padding-right: 10px" src="[% uri_for_gravatar(Commit.committer.email, 21) %]">[% Commit.author.name | html %]</a></td>
22 <td class='action-list'>Author</td>
26 <td class='time-since'>[% time_since(Commit.committed_time) %]</td>
28 <td class='author'><a href="mailto:[% Commit.committer.email %]" title="Email"><img style="float: left; padding-right: 10px" src="[% uri_for_gravatar(Commit.committer.email, 21) %]">[% Commit.committer.name %]</a></td>
29 <td class='action-list'>Committer</td>
33 <!-- [% USE dumper; dumper.dump(commit.parents) %] -->
37 <table class="listing summary">
39 <td class='sha1'>[% INCLUDE 'inc/chroma_hash.tt2' sha1 = Commit.sha1.substr(0, 7), hide_sha1_output = 1 %] <div class="sha1_label">Commit</div></td>
40 <td>[% Commit.sha1 %]</td>
41 <td class='action-list'></td>
44 <td class='sha1'>[% INCLUDE 'inc/chroma_hash.tt2' sha1 = Commit.tree_sha1.substr(0, 7), hide_sha1_output = 1 %] <div class="sha1_label">Tree</div></td>
45 <td>[% Commit.tree_sha1 %]</td>
46 <td class='action-list'><a href="[% c.uri_for_action("/ref/tree", c.req.captures) %]" title="Tree" class="button tree">tree</a></td>
48 [% FOREACH parent IN Commit.parents %]
50 <td class='sha1'>[% INCLUDE 'inc/chroma_hash.tt2' sha1 = parent.sha1.substr(0, 7), hide_sha1_output = 1 %] <div class="sha1_label">Parent</div></td>
51 <td>[% parent.sha1 %]</td>
52 <td class='action-list'>
53 <a href="[% c.uri_for_action('/ref/commit', [Repository.name, parent.sha1]) %]" title="Commit" class="button commit">commit</a>
54 <a href="[% c.uri_for_action('/ref/diff_fancy', [Repository.name, parent.sha1]) %]" title="Difference" class="button diff">diff</a>
63 # In the case of merge commits there will be no diff tree.
64 IF diff_tree && diff_tree.size > 0;
65 INCLUDE '_diff_tree.tt2';