Better document and clean up the factory for collections of repos
[catagits/Gitalist.git] / root / index.tt2
old mode 100644 (file)
new mode 100755 (executable)
index c985037..5df3c17
@@ -1,28 +1,20 @@
 [% BLOCK repos_table_headfoot %]
+[% SET cell = type == 'head' ? 'th' : 'td' %]
 <tr>
-    <th>Repository</th>
+       <[% cell %]></[% cell %]>
+    <[% cell %]>Repository</[% cell %]>
     <!-- XXX These do nothing presently -->
-    <th><a class="header" href="/?o=descr">Description</a></th>
-    <th><a class="header" href="/?o=owner">Owner</a></th>
-    <th><a class="header" href="/?o=age">Last Change</a></th>
-    <th></th>
+    <[% cell %]><a class="header" href="/?o=descr">Description</a></[% cell %]>
+    <[% cell %]><a class="header" href="/?o=age">Last change</a></[% cell %]>
+    <[% cell %]><a class="header" href="/?o=owner">By</a></[% cell %]>
+    <[% cell %]>Actions</[% cell %]>
 </tr>
 [% END %]
-<div class='content'>
-  <form method="get" action="[% c.uri_for_action('/search') %]" enctype="application/x-www-form-urlencoded">
-   <p class="projsearch">Search:
-    <input type="text" name="s" value="[% search_text %]" />
-   </p>
-  </form>
 
-  <table class="repository_list">
-    <thead>
-               [% INCLUDE repos_table_headfoot %]
-    </thead>
-    <tfoot>
-               [% INCLUDE repos_table_headfoot %]
-    </tfoot>
+<table class="listing">
+<thead>
+       [% INCLUDE repos_table_headfoot type = 'head' %]
+</thead>
+[% subinclude('/fragment/collectionofrepositories') %]
+</table>
 
-       [% subinclude('/fragment/collectionofrepositories') %]
-  </table>
-</div>