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