X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=root%2Ffragment%2Fref%2Fhistory.tt2;h=0e5ee10f99849a21148576f71c0f9868f630892c;hb=71eba67cc0f4d557d942d46911f503cca73bc77f;hp=a405234f7ce273f95b6355d04d43bd08a2a61c4c;hpb=2980657b3a81921f42d9ae577d42226746a720fa;p=catagits%2FGitalist.git diff --git a/root/fragment/ref/history.tt2 b/root/fragment/ref/history.tt2 old mode 100644 new mode 100755 index a405234..0e5ee10 --- a/root/fragment/ref/history.tt2 +++ b/root/fragment/ref/history.tt2 @@ -1,51 +1,52 @@ -[% - INCLUDE '_log_pager.tt2'; -%] - - - - - - - - - - - - - - - - - - - +[% BLOCK history_table_headfoot %] +[% SET cell = type == 'head' ? 'th' : 'td' %] +[%# FIXME: should c.req.arguments.0 be path instead? %] + +<[% cell %] colspan="2">Compare + <[% cell %]>sha1 + <[% cell %]>time + <[% cell %]>message + <[% cell %]>author + <[% cell %]>actions + +[% END %] + +
sha1timeauthormessageactions
sha1timeauthormessageactions
+ [% PROCESS history_table_headfoot type = 'head' %] [% FOREACH line IN log_lines %] - - + + + + - + + [% END %] + + + +
[% INCLUDE '_chroma_hash.tt2' sha1 = line.sha1.substr(0, 7) %]
[% INCLUDE 'inc/chroma_hash.tt2' sha1 = line.sha1.substr(0, 7) %] [% time_since(line.authored_time) %][% line.author.name | html %] [% short_cmt(line.comment) | html %] [% INCLUDE '_refs.tt2' object = line.0 %] [% line.author.name | html %] [% IF filetype == 'tree' %] - tree + blob [% ELSIF filetype == 'blob' %] - blob + blob [% END %] - commitdiff + commitdiff [% IF filetype == 'blob' %] - diff to current + diff to current [% END %]
Compare
+ [% - INCLUDE '_log_pager.tt2'; + INCLUDE 'inc/log_pager.tt2'; %]