Respect paging.log config settings.
[catagits/Gitalist.git] / root / repository / search.tt2
CommitLineData
ef0ad44d 1[% BLOCK shortlog_table_headfoot %]
2[% SET cell = type == 'head' ? 'th' : 'td' %]
3<tr>
ef0ad44d 4 <[% cell %]>ID (sha1)</[% cell %]>
5 <[% cell %]>Last change</[% cell %]>
6 <[% cell %]>Message</[% cell %]>
7 <[% cell %]>By</[% cell %]>
8 <[% cell %]>Actions</[% cell %]>
9</tr>
10[% END %]
4df2f62f 11
ef0ad44d 12<table class='listing'>
13<thead>[% PROCESS shortlog_table_headfoot type = 'head' %]</thead>
14<tbody>
15[% FOREACH result IN results %]
16 <tr [% "class='invert'" IF loop.count % 2 %]>
ef0ad44d 17 <td class='sha1' title='[% result.sha1 %]'>[% INCLUDE 'inc/chroma_hash.tt2' sha1 = result.sha1.substr(0, 7) %]</td>
18 <td class='time-since' title='[% result.authored_time %]'>[% time_since(result.authored_time) %]</td>
2ee4b079 19 <td class='commit-message'>[%
2cf1e781 20 # XXX This is fragile at best.
21 html_comment = result.comment | html;
22 html_comment.replace(
23 c.req.param('text'), '<span class="match">' _ c.req.param('text') _ '</span>'
24 );
ef0ad44d 25 %]</td>
26 <td class='author'><img src="[% uri_for_gravatar(result.author.email, 21) %]" />[% result.author.name | html %]</td>
27 <td class='action-list'>
28 <a href="[% c.uri_for_action("/ref/commit", [Repository.name, result.sha1]) %]" title="Commit details" class="button commit">commit</a>
29 <a href="[% c.uri_for_action("/ref/diff_fancy", [Repository.name, result.sha1]) %]" title="Commit difference" class="button diff">commitdiff</a>
30 <a href="[% c.uri_for_action("/ref/tree", [Repository.name, result.sha1]) %]" title="Tree" class="button tree">tree</a>
31 </td>
32</tr>
33[% END %]
ef0ad44d 34</tbody>
feb6e881 35</table>