Gave ownership of URLs to Gitalist proper.
[catagits/Gitalist.git] / templates / tree.tt2
index 00435fd..8583cae 100644 (file)
@@ -4,37 +4,4 @@
 [% commit.comment.substr(0, 85) %] ...
 </div>
 
-<table>
- <thead>
-  <tr>
-   <td>mode</td>
-   <td>file</td>
-   <td>actions</td>
-  </tr>
- </thead>
-
- <tbody>
-  [% FOREACH item IN list_tree %]
-  <tr>
-   <td>[% item.modestr %]</td>
-   [% theact = item.type == 'tree' ? 'tree' : 'blob' -%]
-   <td class='filename'>
-    <a href="/[% theact %]?h=[% item.object %];hb=[% commit.sha1 %];f=[% item.file %]">[% item.file %]</a>
-   </td>
-   <td class='action-list'>
-     <a href="/[% theact %]?p=[% project %];h=[% item.object %];hb=[% commit.sha1 %];f=[% item.file %]">[% theact %]</a>
-     <a href="/history?p=[% project %];h=[% item.object %]">history</a>
-     <a href="/raw?p=[% project %];h=[% item.object %]">raw</a>
-   </td>
-  </tr>
-  [% END %]
- </tbody>
-
- <tfoot>
-  <tr>
-   <td>mode</td>
-   <td>file</td>
-   <td>actions</td>
-  </tr>
- </tfoot>
-</table>
+[% INCLUDE '_tree.tt2' %]