Add log action for commits
[catagits/Gitalist.git] / root / fragment / repository / heads.tt2
CommitLineData
c8bb9a72 1[% BLOCK repository_heads_headfoot %]
2<tr>
ecb0ebe7 3 <th>HEAD</th>
4 <th>age</th>
5 <th>branch</th>
6 <th>actions</th>
c8bb9a72 7</tr>
8[% END %]
9<table class='[% action %] listing'>
10 <thead>
11 [% PROCESS repository_heads_headfoot %]
ecb0ebe7 12 </thead>
13 <tfoot>
c8bb9a72 14 [% PROCESS repository_heads_headfoot %]
ecb0ebe7 15 </tfoot>
16
17 <tbody>
18 [% FOREACH head IN heads %]
19 <tr>
7e8a7295 20 <td class='sha1' title='[% head.sha1 %]'>[% INCLUDE 'inc/chroma_hash.tt2' sha1 = head.sha1.substr(0,7) %]</td>
ecb0ebe7 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>
cd196b66 23 <td class='action-list'>[%# FIXME %]
ce834918 24 <a href="[% c.uri_for_action('/commit/shortlog', [Repository.name, head.name]) %]">shortlog</a>
25 <a href="[% c.uri_for_action('/commit/longlog', [Repository.name, head.name]) %]">log</a>
cd196b66 26 <a href="[% c.uri_for_action('/commit/tree', [Repository.name, head.name]) %]">tree</a>
ecb0ebe7 27 </td>
28 </tr>
29 [% END %]
30 </tbody>
31</table>