Provide option to disable gravatars.
[catagits/Gitalist.git] / root / fragment / repository / shortlog.tt2
1 [% BLOCK shortlog_table_headfoot %]
2 [% SET cell = type == 'head' ? 'th' : 'td' %]
3 <tr>
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 %]>
10 </tr>
11 [% END %]
12
13 <form id="compare-form">
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><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'>[%-
24         IF longlogformat;
25           line.comment | html;
26         ELSE;
27           short_cmt(line.comment) | html;
28           
29         END;
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>
36         </td>
37 </tr>
38 [% END %]
39 <tr>
40         <td colspan="2"><a href="" class="compare-link">Compare</a></td>
41         <td colspan="5"></td>
42 </tr>
43 </tbody>
44 </table>
45 </form>
46
47 <span id="diff-uri" class="js-data">[% c.uri_for_action('/ref/diff_fancy', [Repository.name, 'HEAD']) %]</span> 
48
49 [% INCLUDE 'inc/log_pager.tt2' %]