Limit the number of branches/tags listed by default.
[catagits/Gitalist.git] / root / fragment / repository / heads.tt2
CommitLineData
c8bb9a72 1[% BLOCK repository_heads_headfoot %]
10938267 2[% SET cell = type == 'head' ? 'th' : 'td' %]
189f3b00 3<tr class="header">
10938267 4 <[% cell %]>HEAD</[% cell %]>
189f3b00 5 <[% cell %]>Last change</[% cell %]>
6 <[% cell %]>Branch</[% cell %]>
7 <[% cell %]>Actions</[% cell %]>
c8bb9a72 8</tr>
9[% END %]
189f3b00 10
c8bb9a72 11<table class='[% action %] listing'>
10938267 12 <thead>[% PROCESS repository_heads_headfoot type = 'head' %]</thead>
ecb0ebe7 13 <tbody>
14 [% FOREACH head IN heads %]
15 <tr>
7e8a7295 16 <td class='sha1' title='[% head.sha1 %]'>[% INCLUDE 'inc/chroma_hash.tt2' sha1 = head.sha1.substr(0,7) %]</td>
ecb0ebe7 17 <td class='time-since' title='[% head.last_change %]'>[% time_since(head.last_change) %]</td>
18 <td class='head[% head.sha1 == HEAD ? ' current' : '' %]'>[% head.name %]</td>
cd196b66 19 <td class='action-list'>[%# FIXME %]
189f3b00 20 <a href="[% c.uri_for_action('/ref/shortlog', [Repository.name, head.name]) %]" title="Short log" class="button shortlog">shortlog</a>
21 <a href="[% c.uri_for_action('/ref/longlog', [Repository.name, head.name]) %]" title="Long log" class="button longlog">log</a>
22 <a href="[% c.uri_for_action('/ref/tree', [Repository.name, head.name]) %]" title="Tree" class="button tree">tree</a>
ecb0ebe7 23 </td>
24 </tr>
535bc6e2 25 [% LAST IF c.req.args.0 AND c.req.args.0 == loop.count %]
ecb0ebe7 26 [% END %]
27 </tbody>
28</table>