Change everything round to be /ref/ instead of /commit/ as this makes more sense
[catagits/Gitalist.git] / root / fragment / repository / shortlog.tt2
1 [% BLOCK shortlog_table_headfoot %]
2 <tr>
3  <th>sha1</th>
4  <th>time</th>
5  <th>author</th>
6  <th>message</th>
7  <th>actions</th>
8 </tr>
9 [% END %]
10 <div class='content'>
11 [%
12   INCLUDE 'inc/log_pager.tt2';
13 %]<table class='shortlog listing'>
14  <thead>
15     [% PROCESS shortlog_table_headfoot %]
16  </thead>
17
18  <tfoot>
19     [% PROCESS shortlog_table_headfoot %]
20  </tfoot>
21
22  <tbody>
23  [% FOREACH line IN log_lines %]
24   <tr>
25    <td class='sha1' title='[% line.sha1 %]'>[% INCLUDE 'inc/chroma_hash.tt2' sha1 = line.sha1.substr(0, 7) %]</td>
26    <td class='time-since' title='[% line.authored_time %]'>[% time_since(line.authored_time) %]</td>
27    <td class='author'><img style="padding-right: 10px" src="[% uri_for_gravatar(line.author.email, 20) %]" />[% line.author.name | html %]</td>
28    <td>
29      [% short_cmt(line.comment) | html %]
30      [%# FIXME What did this crap used to do? Did it work ever? %]
31      [%# INCLUDE '_refs.tt2' object = line %]
32    </td>
33    <td class='action-list'>
34      <a href="[% c.uri_for_action("/ref/commit", [Repository.name, line.sha1]) %]">commit</a>
35      <a href="[% c.uri_for_action("/ref/diff_fancy", [Repository.name, line.sha1]) %]">commitdiff</a>
36      <a href="[% c.uri_for_action("/ref/tree", [Repository.name, line.sha1]) %]">tree</a>
37    </td>
38   </tr>
39  [% END %]
40  </tbody>
41 </table>[%
42   INCLUDE 'inc/log_pager.tt2';
43 %]
44 </div>