Author: sevein
Date: Fri Apr  6 13:04:55 2012
New Revision: 11414

Log:
Issue 2288, new treeview, some js code

Modified:
   branches/2.0/apps/qubit/modules/informationobject/templates/_treeView.php

Modified: 
branches/2.0/apps/qubit/modules/informationobject/templates/_treeView.php
==============================================================================
--- branches/2.0/apps/qubit/modules/informationobject/templates/_treeView.php   
Fri Apr  6 09:02:12 2012        (r11413)
+++ branches/2.0/apps/qubit/modules/informationobject/templates/_treeView.php   
Fri Apr  6 13:04:55 2012        (r11414)
@@ -2,9 +2,7 @@
 
   <ul class="unstyled">
 
-    <?php if (false): ?>
-      <li class="back"><i></i><?php echo link_to(__('Show all'), array(), 
array('class' => 'arrow-left')) ?></li>
-    <?php endif; ?>
+    <li class="back"><i></i><?php echo link_to(__('Show all'), array('module' 
=> 'informationobject', 'action' => 'browse'), array('class' => 'arrow-left')) 
?></li>
 
     <?php $resultSet = $current->getResults() ?>
     <?php $doc = $resultSet[0]->getData() ?>
@@ -16,11 +14,12 @@
     <?php foreach($doc['ancestors'] as $id): ?>
       <?php if ($id == QubitInformationObject::ROOT_ID) continue; ?>
       <?php $ancestor = QubitInformationObject::getById($id) ?>
-      <li class="up"><i></i><?php echo link_to($ancestor, array($ancestor, 
'module' => 'informationobject')) ?></li>
+      <li class="ancestor up"><i></i><?php echo link_to($ancestor, 
array($ancestor, 'module' => 'informationobject')) ?></li>
     <?php endforeach; ?>
 
     <li class="active"><i></i><?php echo link_to($resource, array($resource, 
'module' => 'informationobject')) ?></li>
 
+    <?php if (false): ?>
     <?php foreach ($children->getResults() as $hit): ?>
 
       <?php $doc = $hit->getData() ?>
@@ -38,6 +37,7 @@
       <?php endif; ?>
 
     <?php endforeach; ?>
+    <?php endif; ?>
 
   </ul>
 

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to