Now heads show up in the shortlog and the current head is marked up in the heads...
[catagits/Gitalist.git] / templates / _shortlog.tt2
1 <table>
2  <thead>
3   <tr>
4    <td>sha1</td>
5    <td>time</td>
6    <td>author</td>
7    <td>message</td>
8    <td>actions</td>
9   </tr>
10  </thead>
11
12  <tbody>
13  [% FOREACH line IN log_lines %]
14   <tr>
15    <td>[% line.sha1.substr(0, 6) %]</td>
16    <td>[% line.authored_time %]</td>
17    <td>[% line.author.name | html %]</td>
18    <td>
19     [% line.comment.substr(0, 50) | html %]
20     <span class='refs'>
21      [% FOREACH ref IN refs.${line.sha1} %]
22      <span class='[% ref.search('^remotes/') ? 'remote' : 'head' %]'>
23       <a href='/shortlog?p=[% project %];h=refs/[% ref %]'>[% ref.replace('^(remote|head)s/', '') %]</a>
24      </span>
25      [% END %]
26     </span>
27    </td>
28    <td class='action-list'>
29      <a href="/commit?p=[% project %];h=[% line.sha1 %]">commit</a>
30      <a href="/commitdiff?p=[% project %];h=[% line.sha1 %]">commitdiff</a>
31      <a href="/tree?p=[% project %];h=[% line.sha1 %];hb=[% line.tree_sha1 %]">tree</a>
32    </td>
33   </tr>
34  [% END %]
35  </tbody>
36
37  <tfoot>
38   <tr>
39    <td>sha1</td>
40    <td>time</td>
41    <td>author</td>
42    <td>message</td>
43    <td>actions</td>
44   </tr>
45  </tfoot>
46 </table>
47