more design changes
[catagits/Gitalist.git] / root / fragment / repository / shortlog.tt2
1 [% BLOCK shortlog_table_headfoot %]
2 [% SET cell = type == 'head' ? 'th' : 'td' %]
3 <tr>
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 %]
11
12
13
14 <table class='listing'>
15 <thead>[% PROCESS shortlog_table_headfoot type = 'head' %]</thead>
16 <tbody>
17  [% FOREACH line IN log_lines %]
18  <tr [% "class='invert'" IF loop.count % 2 %]>
19         <td class='sha1' title='[% line.sha1 %]'>[% INCLUDE 'inc/chroma_hash.tt2' sha1 = line.sha1.substr(0, 7) %]</td>
20         <td class='time-since' title='[% line.authored_time %]'>[% time_since(line.authored_time) %]</td>
21         <td>
22                 [% short_cmt(line.comment) | html %]
23                 [% INCLUDE '_refs.tt2' object = line %]
24         </td>
25         <td class='author'><img src="[% uri_for_gravatar(line.author.email, 21) %]" />[% line.author.name | html %]</td>
26         <td class='action-list'>
27                 <a href="[% c.uri_for_action("/ref/commit", [Repository.name, line.sha1]) %]" title="Commit details" class="button commit">commit</a>
28                 <a href="[% c.uri_for_action("/ref/diff_fancy", [Repository.name, line.sha1]) %]" title="Commit difference" class="button diff">commitdiff</a>
29                 <a href="[% c.uri_for_action("/ref/tree", [Repository.name, line.sha1]) %]" title="Tree" class="button tree">tree</a>
30         </td>
31 </tr>
32 [% END %]
33 </tbody>
34 </table>
35
36 [% INCLUDE 'inc/log_pager.tt2' %]