do NOT ignore inc - this is in /root
[catagits/Gitalist.git] / root / fragment / ref / history.tt2
CommitLineData
10938267 1[% BLOCK history_table_headfoot %]
2[% SET cell = type == 'head' ? 'th' : 'td' %]
3<tr>
4 <[% cell %]>sha1</[% cell %]>
5 <[% cell %]>time</[% cell %]>
6 <[% cell %]>author</[% cell %]>
7 <[% cell %]>message</[% cell %]>
8 <[% cell %]>actions</[% cell %]>
9</tr>
10[% END %]
ba2b01c7 11[%
18fdf3d0 12 INCLUDE 'inc/log_pager.tt2';
ba2b01c7 13%] <table class='history listing'>
10938267 14 <thead>[% PROCESS history_table_headfoot type = 'head' %]</thead
15 <tfoot>[% PROCESS history_table_headfoot type = 'foot' %]</tfoot>
ba2b01c7 16
17 <tbody>
18 [% FOREACH line IN log_lines %]
19 <tr>
18fdf3d0 20 <td class='sha1' title='[% line.sha1 %]'>[% INCLUDE 'inc/chroma_hash.tt2' sha1 = line.sha1.substr(0, 7) %]</td>
ba2b01c7 21 <td class='time-since' title='[% line.authored_time %]'>[% time_since(line.authored_time) %]</td>
22 <td class='author'>[% line.author.name | html %]</td>
23 <td>
24 [% short_cmt(line.comment) | html %]
25 [% INCLUDE '_refs.tt2' object = line.0 %]
26 </td>
27 <td class='action-list'>
28 [% IF filetype == 'tree' %]
7998de12 29 <a href="[% c.uri_for_action("/ref/tree", [Repository.name, line.sha1], filename) %]">blob</a>
ba2b01c7 30 [% ELSIF filetype == 'blob' %]
7998de12 31 <a href="[% c.uri_for_action("/ref/blob", [Repository.name, line.sha1], filename) %]">blob</a>
ba2b01c7 32 [% END %]
7998de12 33 <a href="[% c.uri_for_action("/ref/diff_fancy", [Repository.name, line.sha1]) %]">commitdiff</a>
ba2b01c7 34 [% IF filetype == 'blob' %]
7998de12 35 <a href="[% c.uri_for_action("/ref/diff_fancy", [Repository.name, line.sha1], 'HEAD', filename) %]">diff to current</a>
ba2b01c7 36 [% END %]
37 </td>
38 </tr>
39 [% END %]
40 </tbody>
41 </table>
42[%
18fdf3d0 43 INCLUDE 'inc/log_pager.tt2';
ba2b01c7 44%]