1 [% BLOCK history_table_headfoot %]
2 [% SET cell = type == 'head' ? 'th' : 'td' %]
4 <[% cell %] colspan="2"><a href="" class='compare-link'>Compare</a></[% cell %]>
5 <[% cell %]>sha1</[% cell %]>
6 <[% cell %]>time</[% cell %]>
7 <[% cell %]>message</[% cell %]>
8 <[% cell %]>author</[% cell %]>
9 <[% cell %]>actions</[% cell %]>
12 <form id="compare-form">
13 <table class='listing'>
14 <thead>[% PROCESS history_table_headfoot type = 'head' %]</thead
17 [% FOREACH line IN log_lines %]
18 <tr [% "class='invert'" IF loop.count % 2 %]>
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>
21 <td class='sha1' title='[% line.sha1 %]'>[% INCLUDE 'inc/chroma_hash.tt2' sha1 = line.sha1.substr(0, 7) %]</td>
22 <td class='time-since' title='[% line.authored_time %]'>[% time_since(line.authored_time) %]</td>
25 [% short_cmt(line.comment) | html %]
26 [% INCLUDE '_refs.tt2' object = line.0 %]
28 <td class='author'>[% line.author.name | html %]</td>
29 <td class='action-list'>
30 [% IF filetype == 'tree' %]
31 <a href="[% c.uri_for_action("/ref/tree", [Repository.name, line.sha1], filename) %]" title="Blob" class="button blob">blob</a>
32 [% ELSIF filetype == 'blob' %]
33 <a href="[% c.uri_for_action("/ref/blob", [Repository.name, line.sha1], filename) %]" title="Blob" class="button blob">blob</a>
35 <a href="[% c.uri_for_action("/ref/diff_fancy", [Repository.name, line.sha1]) %]" title="Commit diff" class="button diff">commitdiff</a>
36 [% IF filetype == 'blob' %]
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>
43 <td colspan="2"><a href="" class='compare-link'>Compare</a></td>
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>
53 [% INCLUDE 'inc/log_pager.tt2' %]