Stripe the tables and semantify the pages.
[catagits/Gitalist.git] / root / _heads.tt2
CommitLineData
f78e75d8 1<table class='heads listing'>
790ce598 2 <thead>
3 <tr>
4621ecf0 4 <th>HEAD</th>
7a88ffa4 5 <th>age</th>
6 <th>branch</th>
7 <th>actions</th>
8 </tr>
9 </thead>
10 <tfoot>
11 <tr>
4621ecf0 12 <td>HEAD</td>
790ce598 13 <td>age</td>
14 <td>branch</td>
15 <td>actions</td>
16 </tr>
7a88ffa4 17 </tfoot>
790ce598 18
19 <tbody>
20 [% FOREACH head IN heads %]
21 <tr>
f78e75d8 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>
0ee97fec 24 <td class='head[% head.sha1 == HEAD ? ' current' : '' %]'>[% head.name %]</td>
790ce598 25 <td class='action-list'>
839da3d7 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>
790ce598 29 </td>
30 </tr>
31 [% END %]
32 </tbody>
790ce598 33</table>