Commit | Line | Data |
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> |
b0265bca |
10 | <dd><img style="float: left; padding-right: 10px" src="[% uri_for_gravatar(Commit.committer.email, 40) %]">[% Commit.author.name | html %] <[% Commit.author.email %]><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 %] <[% Commit.committer.email %]><br/> |
14 | [% time_since(Commit.committed_time) %]</dd> |
15 | <dt style="clear: left">commit</dt> |
86692bbb |
16 | <dd>[% Commit.sha1 %]</dd> |
17 | <dt>tree</dt> |
18 | <dd>[% Commit.tree_sha1 %] |
2980657b |
19 | <span class='action-list'><a href="[% c.uri_for_action("/ref/tree", c.req.captures) %]">tree</a></span> |
86692bbb |
20 | </dd> |
21 | [% FOREACH parent IN Commit.parents %] |
22 | <dt>parent</dt> |
23 | <dd>[% parent.sha1 %] |
24 | <span class='action-list'> |
2980657b |
25 | <a href="[% c.uri_for_action('/ref/commit', [Repository.name, parent.sha1]) %]">commit</a> |
26 | <a href="[% c.uri_for_action('/ref/diff_fancy', [Repository.name, parent.sha1]) %]">diff</a> |
86692bbb |
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. |
ee5cf0bf |
36 | IF diff_tree && diff_tree.size > 0; |
86692bbb |
37 | INCLUDE '_diff_tree.tt2'; |
38 | END; |
84f49778 |
39 | %] |