1 [% BLOCK shortlog_table_headfoot %]
2 [% SET cell = type == 'head' ? 'th' : 'td' %]
4 <[% cell %] colspan="2"><a href="" class="compare-link">Compare</a></[% cell %]>
5 <[% cell %]>ID (sha1)</[% cell %]>
6 <[% cell %]>Last change</[% cell %]>
7 <[% cell %]>Message</[% cell %]>
8 <[% cell %]>By</[% cell %]>
9 <[% cell %]>Actions</[% cell %]>
13 <form id="compare-form">
14 <table class='listing'>
15 <thead>[% PROCESS shortlog_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 == 1 %] /></td>
20 <td><input type="radio" name="sha1_b" value="[% line.sha1 %]" [% "checked" IF loop.count == 2 %]/></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>
23 <td><p class='commit-message'>[%-
27 short_cmt(line.comment) | html;
30 -%]</p>[% INCLUDE '_refs.tt2' object = line %]</td>
31 <td class='author'>[% INCLUDE 'inc/gravatar.tt2' email = line.author.email %][% line.author.name | html %]</td>
32 <td class='action-list'>
33 <a href="[% c.uri_for_action("/ref/commit", [Repository.name, line.sha1]) %]" title="Commit details" class="button commit">commit</a>
34 <a href="[% c.uri_for_action("/ref/diff_fancy", [Repository.name, line.sha1]) %]" title="Commit difference" class="button diff">commitdiff</a>
35 <a href="[% c.uri_for_action("/ref/tree", [Repository.name, line.sha1]) %]" title="Tree" class="button tree">tree</a>
40 <td colspan="2"><a href="" class="compare-link">Compare</a></td>
47 <span id="diff-uri" class="js-data">[% c.uri_for_action('/ref/diff_fancy', [Repository.name, 'HEAD']) %]</span>
49 [% INCLUDE 'inc/log_pager.tt2' %]