Commit | Line | Data |
10938267 |
1 | [% BLOCK history_table_headfoot %] |
2 | [% SET cell = type == 'head' ? 'th' : 'td' %] |
3 | <tr> |
feb6e881 |
4 | <[% cell %] colspan="2"><a href="" class='compare-link'>Compare</a></[% cell %]> |
10938267 |
5 | <[% cell %]>sha1</[% cell %]> |
6 | <[% cell %]>time</[% cell %]> |
10938267 |
7 | <[% cell %]>message</[% cell %]> |
eab82ed1 |
8 | <[% cell %]>author</[% cell %]> |
10938267 |
9 | <[% cell %]>actions</[% cell %]> |
10 | </tr> |
11 | [% END %] |
feb6e881 |
12 | <form id="compare-form"> |
eab82ed1 |
13 | <table class='listing'> |
10938267 |
14 | <thead>[% PROCESS history_table_headfoot type = 'head' %]</thead |
ba2b01c7 |
15 | |
16 | <tbody> |
17 | [% FOREACH line IN log_lines %] |
eab82ed1 |
18 | <tr [% "class='invert'" IF loop.count % 2 %]> |
feb6e881 |
19 | <td><input type="radio" name="sha1_a" value="[% line.sha1 %]"[% " checked" IF loop.count == 2 %] /></td> |
20 | <td><input type="radio" name="sha1_b" value="[% line.sha1 %]"[% " checked" IF loop.count == 1 %]/></td> |
18fdf3d0 |
21 | <td class='sha1' title='[% line.sha1 %]'>[% INCLUDE 'inc/chroma_hash.tt2' sha1 = line.sha1.substr(0, 7) %]</td> |
ba2b01c7 |
22 | <td class='time-since' title='[% line.authored_time %]'>[% time_since(line.authored_time) %]</td> |
eab82ed1 |
23 | |
ba2b01c7 |
24 | <td> |
25 | [% short_cmt(line.comment) | html %] |
26 | [% INCLUDE '_refs.tt2' object = line.0 %] |
27 | </td> |
eab82ed1 |
28 | <td class='author'>[% line.author.name | html %]</td> |
ba2b01c7 |
29 | <td class='action-list'> |
30 | [% IF filetype == 'tree' %] |
189f3b00 |
31 | <a href="[% c.uri_for_action("/ref/tree", [Repository.name, line.sha1], filename) %]" title="Blob" class="button blob">blob</a> |
ba2b01c7 |
32 | [% ELSIF filetype == 'blob' %] |
189f3b00 |
33 | <a href="[% c.uri_for_action("/ref/blob", [Repository.name, line.sha1], filename) %]" title="Blob" class="button blob">blob</a> |
ba2b01c7 |
34 | [% END %] |
189f3b00 |
35 | <a href="[% c.uri_for_action("/ref/diff_fancy", [Repository.name, line.sha1]) %]" title="Commit diff" class="button diff">commitdiff</a> |
ba2b01c7 |
36 | [% IF filetype == 'blob' %] |
189f3b00 |
37 | <a href="[% c.uri_for_action("/ref/diff_fancy", [Repository.name, line.sha1], 'HEAD', filename) %]" title="Diff to current" class="button diffcurrent">diff to current</a> |
ba2b01c7 |
38 | [% END %] |
39 | </td> |
40 | </tr> |
41 | [% END %] |
71eba67c |
42 | <tr> |
feb6e881 |
43 | <td colspan="2"><a href="" class='compare-link'>Compare</a></td> |
71eba67c |
44 | <td colspan="5"></td> |
45 | </tr> |
ba2b01c7 |
46 | </tbody> |
47 | </table> |
71eba67c |
48 | </form> |
feb6e881 |
49 | |
50 | <span id='compare-path' class='js-data'>[% filename %]</span> |
51 | <span id="diff-uri" class='js-data'>[% c.uri_for_action('/ref/diff_fancy', [Repository.name, 'HEAD']) %]</span> |
52 | |
53 | [% INCLUDE 'inc/log_pager.tt2' %] |