X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=templates%2Fcommit.tt2;h=82db3d7ef4435cc17830637a280cc023adedae86;hb=47495599588ae86769d675a239cbca6b07a36aa0;hp=ba02f4a5043e862d9fb909d1b09e17c975469d3d;hpb=b222ff0a7260cc1777c7e455dfcaf22551a512fc;p=catagits%2FGitalist.git diff --git a/templates/commit.tt2 b/templates/commit.tt2 index ba02f4a..82db3d7 100644 --- a/templates/commit.tt2 +++ b/templates/commit.tt2 @@ -1,4 +1,190 @@ -

The commit says

-
-[% commit.comment %]
-
+[% INCLUDE 'commit-nav.tt2' object = commit %] +
+[% commit.comment.substr(0, 85) %] ... +[% FOREACH ref IN c.model('Git').refs_for(commit.sha1) %] + [% ref %] +[% END %] +
+ +
+
author
+
[% commit.author.name %] <[% commit.author.email %]>
+ [% commit.authored_time %]
+
committer
+
[% commit.committer.name %] <[% commit.committer.email %]>
+ [% commit.committed_time %]
+
commit
+
[% commit.sha1 %]
+
tree
+
[% commit.tree_sha1 %] tree
+ [% FOREACH parent IN commit.parents %] +
parent
+
[% parent %] commit
+ [% END %] +
+ +
[% commit.comment %]
+ + + + + + + + + + [% FOREACH line IN c.model('Git').diff_tree(commit) %] + + + + + [% END %] + + + + + + + +
fileactions
[% line.src %] + [% IF !line.is_new %]diff[% END %] + blob + [% IF !line.is_new %]history[% END %] +
fileactions
+ +