Split subincludes out into their own /fragment controllers.
[catagits/Gitalist.git] / root / fragment / repository / heads.tt2
CommitLineData
ecb0ebe7 1<table class='[% action %] listing'>
2 <thead>
3 <tr>
4 <th>HEAD</th>
5 <th>age</th>
6 <th>branch</th>
7 <th>actions</th>
8 </tr>
9 </thead>
10 <tfoot>
11 <tr>
12 <td>HEAD</td>
13 <td>age</td>
14 <td>branch</td>
15 <td>actions</td>
16 </tr>
17 </tfoot>
18
19 <tbody>
20 [% FOREACH head IN heads %]
21 <tr>
22 <td class='sha1' title='[% head.sha1 %]'>[% INCLUDE '_chroma_hash.tt2' sha1 = head.sha1.substr(0,7) %]</td>
23 <td class='time-since' title='[% head.last_change %]'>[% time_since(head.last_change) %]</td>
24 <td class='head[% head.sha1 == HEAD ? ' current' : '' %]'>[% head.name %]</td>
25 <td class='action-list'>
26 <a href="[% c.uri_for("shortlog", {h='refs/heads/' _ head.name}) %]">shortlog</a>
27 <a href="[% c.uri_for("log", {h='refs/heads/' _ head.name}) %]">log</a>
28 <a href="[% c.uri_for("tree", {h='refs/heads/' _ head.name, hb=head.name}) %]">tree</a>
29 </td>
30 </tr>
31 [% END %]
32 </tbody>
33</table>