Initial implementation of javascript drilldown tree
[gitphp.git] / templates / treelist.tpl
blob:a/templates/treelist.tpl -> blob:b/templates/treelist.tpl
--- a/templates/treelist.tpl
+++ b/templates/treelist.tpl
@@ -9,12 +9,13 @@
  * @subpackage Template
  *}
 
+<table cellspacing="0" id="{$tree->GetHash()}" class="treeTable">
 {foreach from=$tree->GetContents() item=treeitem}
   <tr class="{cycle values="light,dark"}">
-    <td class="monospace">{$treeitem->GetModeString()}</td>
+    <td class="monospace perms">{$treeitem->GetModeString()}</td>
     {if $treeitem instanceof GitPHP_Blob}
       <td class="filesize">{$treeitem->GetSize()}</td>
-      <td class="list">
+      <td class="list fileName">
         <a href="{$SCRIPT_NAME}?p={$project->GetProject()|urlencode}&amp;a=blob&amp;h={$treeitem->GetHash()}&amp;hb={$commit->GetHash()}&amp;f={$treeitem->GetPath()}" class="list">{$treeitem->GetName()}</a>
       </td>
       <td class="link">
@@ -25,9 +26,9 @@
 	<a href="{$SCRIPT_NAME}?p={$project->GetProject()|urlencode}&amp;a=blob_plain&amp;h={$treeitem->GetHash()}&amp;f={$treeitem->GetPath()}">{t}plain{/t}</a>
       </td>
     {elseif $treeitem instanceof GitPHP_Tree}
-      <td></td>
-      <td class="list">
-        <a href="{$SCRIPT_NAME}?p={$project->GetProject()|urlencode}&amp;a=tree&amp;h={$treeitem->GetHash()}&amp;hb={$commit->GetHash()}&amp;f={$treeitem->GetPath()}">{$treeitem->GetName()}</a>
+      <td class="filesize"></td>
+      <td class="list fileName">
+        <a href="{$SCRIPT_NAME}?p={$project->GetProject()|urlencode}&amp;a=tree&amp;h={$treeitem->GetHash()}&amp;hb={$commit->GetHash()}&amp;f={$treeitem->GetPath()}" class="jsTree">{$treeitem->GetName()}</a>
       </td>
       <td class="link">
         <a href="{$SCRIPT_NAME}?p={$project->GetProject()|urlencode}&amp;a=tree&amp;h={$treeitem->GetHash()}&amp;hb={$commit->GetHash()}&amp;f={$treeitem->GetPath()}">{t}tree{/t}</a>
@@ -37,4 +38,5 @@
     {/if}
   </tr>
 {/foreach}
+</table>
 

comments