a05a2edc32df9d552184356c221614bdf33efdbf
[catagits/Gitalist.git] / root / fragment / repository / heads.tt2
1 [% BLOCK repository_heads_headfoot %]
2 <tr>
3    <th>HEAD</th>
4    <th>age</th>
5    <th>branch</th>
6    <th>actions</th>
7 </tr>
8 [% END %]
9 <table class='[% action %] listing'>
10  <thead>
11   [% PROCESS repository_heads_headfoot %]
12  </thead>
13  <tfoot>
14   [% PROCESS repository_heads_headfoot %]
15  </tfoot>
16
17  <tbody>
18  [% FOREACH head IN heads %]
19   <tr>
20    <td class='sha1' title='[% head.sha1 %]'>[% INCLUDE 'inc/chroma_hash.tt2' sha1 = head.sha1.substr(0,7) %]</td>
21    <td class='time-since' title='[% head.last_change %]'>[% time_since(head.last_change) %]</td>
22    <td class='head[% head.sha1 == HEAD ? ' current' : '' %]'>[% head.name %]</td>
23    <td class='action-list'>[%# FIXME %]
24      <a href="[% c.uri_for_action('/ref/shortlog', [Repository.name, head.name]) %]">shortlog</a>
25      <a href="[% c.uri_for_action('/ref/longlog', [Repository.name, head.name]) %]">log</a>
26      <a href="[% c.uri_for_action('/ref/tree', [Repository.name, head.name]) %]">tree</a>
27    </td>
28   </tr>
29  [% END %]
30  </tbody>
31 </table>