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