Stripe the tables and semantify the pages.
[catagits/Gitalist.git] / root / _heads.tt2
index 307f95a..c886711 100644 (file)
@@ -1,33 +1,33 @@
-<table class='heads'>
+<table class='heads listing'>
  <thead>
   <tr>
+   <th>HEAD</th>
+   <th>age</th>
+   <th>branch</th>
+   <th>actions</th>
+  </tr>
+ </thead>
+ <tfoot>
+  <tr>
+   <td>HEAD</td>
    <td>age</td>
    <td>branch</td>
    <td>actions</td>
   </tr>
- </thead>
+ </tfoot>
 
  <tbody>
  [% FOREACH head IN heads %]
   <tr>
-   <td>[% time_since(head.last_change) %]</td>
+   <td class='sha1' title='[% head.sha1 %]'>[% INCLUDE '_chroma_hash.tt2' sha1 = head.sha1.substr(0,7) %]</td>
+   <td class='time-since' title='[% head.last_change %]'>[% time_since(head.last_change) %]</td>
    <td class='head[% head.sha1 == HEAD ? ' current' : '' %]'>[% head.name %]</td>
    <td class='action-list'>
-     <a href="[% c.uri_for("shortlog", {h=head.sha1}) %]">shortlog</a>
-     <a href="[% c.uri_for("log", {h=head.sha1}) %]">log</a>
-     <a href="[% c.uri_for("tree", {h=head.sha1, hb=head.name}) %]">tree</a>
+     <a href="[% c.uri_for("shortlog", {h='refs/heads/' _ head.name}) %]">shortlog</a>
+     <a href="[% c.uri_for("log", {h='refs/heads/' _ head.name}) %]">log</a>
+     <a href="[% c.uri_for("tree", {h='refs/heads/' _ head.name, hb=head.name}) %]">tree</a>
    </td>
   </tr>
  [% END %]
  </tbody>
-
- <tfoot>
-  <tr>
-   <td>age</td>
-   <td>branch</td>
-   <td>actions</td>
-  </tr>
- </tfoot>
 </table>
-
-