Switch to using 960.gs grids for layout.
[catagits/Gitalist.git] / root / fragment / ref / tree.tt2
index b3f7a69..f690386 100644 (file)
@@ -1,17 +1,14 @@
 [% BLOCK tree_table_headfoot %]
+[% SET cell = type == 'head' ? 'th' : 'td' %]
   <tr>
-   <th>mode</th>
-   <th>file</th>
-   <th>actions</th>
+   <[% cell %]>mode</[% cell %]>
+   <[% cell %]>file</[% cell %]>
+   <[% cell %]>actions</[% cell %]>
   </tr>
 [% END %]
 <table class='tree listing'>
- <thead>
-    [% PROCESS tree_table_headfoot %]
- </thead>
- <tfoot>
-    [% PROCESS tree_table_headfoot %]
- </tfoot>
+ <thead>[% PROCESS tree_table_headfoot type = 'head' %]</thead>
+ <tfoot>[% PROCESS tree_table_headfoot type = 'foot' %]</tfoot>
 
  <tbody>
   [% FOREACH item IN tree_list %]