Only 2 of the pages in the app test now generate invalid links.
[catagits/Gitalist.git] / root / fragment / repository / heads.tt2
index 0eb77e7..d5ea26a 100644 (file)
@@ -1,31 +1,29 @@
-<table class='[% action %] listing'>
- <thead>
-  <tr>
+[% BLOCK repository_heads_headfoot %]
+<tr>
    <th>HEAD</th>
    <th>age</th>
    <th>branch</th>
    <th>actions</th>
-  </tr>
+</tr>
+[% END %]
+<table class='[% action %] listing'>
+ <thead>
+  [% PROCESS repository_heads_headfoot %]
  </thead>
  <tfoot>
-  <tr>
-   <td>HEAD</td>
-   <td>age</td>
-   <td>branch</td>
-   <td>actions</td>
-  </tr>
+  [% PROCESS repository_heads_headfoot %]
  </tfoot>
 
  <tbody>
  [% FOREACH head IN heads %]
   <tr>
-   <td class='sha1' title='[% head.sha1 %]'>[% INCLUDE '_chroma_hash.tt2' sha1 = head.sha1.substr(0,7) %]</td>
+   <td class='sha1' title='[% head.sha1 %]'>[% INCLUDE 'inc/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='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 class='action-list'>[%# FIXME %]
+     <a href="[% c.uri_for_action('/repository/shortlog', [Repository.name]) %]">shortlog</a>
+     <a href="[% c.uri_for_action('/repository/log', [Repository.name]) %]">log</a>
+     <a href="[% c.uri_for_action('/commit/tree', [Repository.name, head.name]) %]">tree</a>
    </td>
   </tr>
  [% END %]