Merge branch 'upstream_master'
[catagits/Gitalist.git] / root / fragment / repository / shortlog.tt2
CommitLineData
af8c29dd 1[% BLOCK shortlog_table_headfoot %]
aebe9a0e 2[% SET cell = type == 'head' ? 'th' : 'td' %]
af8c29dd 3<tr>
82f94bce 4 <[% cell %]>ID (sha1)</[% cell %]>
eab82ed1 5 <[% cell %]>Last change</[% cell %]>
82f94bce 6 <[% cell %]>Message</[% cell %]>
eab82ed1 7 <[% cell %]>By</[% cell %]>
82f94bce 8 <[% cell %]>Actions</[% cell %]>
af8c29dd 9</tr>
10[% END %]
7e8a7295 11
eab82ed1 12<table class='listing'>
82f94bce 13<thead>[% PROCESS shortlog_table_headfoot type = 'head' %]</thead>
14<tbody>
7e8a7295 15 [% FOREACH line IN log_lines %]
82f94bce 16 <tr [% "class='invert'" IF loop.count % 2 %]>
17 <td class='sha1' title='[% line.sha1 %]'>[% INCLUDE 'inc/chroma_hash.tt2' sha1 = line.sha1.substr(0, 7) %]</td>
18 <td class='time-since' title='[% line.authored_time %]'>[% time_since(line.authored_time) %]</td>
19 <td>
08d8bb08 20 [% IF longlogformat %]
21 [% message = line.comment | html; message.replace("\n", "<br/>") %]
22 [% ELSE %]
23 [% short_cmt(line.comment) | html %]
24 [% INCLUDE '_refs.tt2' object = line %]
25 [% END %]
82f94bce 26 </td>
27 <td class='author'><img src="[% uri_for_gravatar(line.author.email, 21) %]" />[% line.author.name | html %]</td>
28 <td class='action-list'>
29 <a href="[% c.uri_for_action("/ref/commit", [Repository.name, line.sha1]) %]" title="Commit details" class="button commit">commit</a>
30 <a href="[% c.uri_for_action("/ref/diff_fancy", [Repository.name, line.sha1]) %]" title="Commit difference" class="button diff">commitdiff</a>
31 <a href="[% c.uri_for_action("/ref/tree", [Repository.name, line.sha1]) %]" title="Tree" class="button tree">tree</a>
32 </td>
33</tr>
34[% END %]
35</tbody>
36</table>
37
d846a6cb 38[% INCLUDE 'inc/log_pager.tt2' %]