Author: sevein
Date: Mon Jun 11 15:55:04 2012
New Revision: 11761

Log:
Hide nextSiblings button if action is prevSiblings

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

Modified: 
branches/2.0/apps/qubit/modules/informationobject/templates/treeViewSuccess.php
==============================================================================
--- 
branches/2.0/apps/qubit/modules/informationobject/templates/treeViewSuccess.php 
    Mon Jun 11 15:39:09 2012        (r11760)
+++ 
branches/2.0/apps/qubit/modules/informationobject/templates/treeViewSuccess.php 
    Mon Jun 11 15:55:04 2012        (r11761)
@@ -16,9 +16,11 @@
   <?php echo $item->slug ?>
 <?php endif; ?>
 
-<?php $parent = $sf_request->show == 'item' || QubitInformationObject::ROOT_ID 
== $resource->id ? $resource : $resource->parent ?>
-<?php if ($parent->rgt - $item->rgt > 1): ?>
-  <li class="more" data-xhr-location="<?php echo url_for(array('module' => 
'informationobject', 'action' => 'treeView', 'slug' => $item->slug)) ?>">
-    <a href="#">...</a>
-  </li>
+<?php if ('prevSiblings' != $sf_request->show): ?>
+  <?php $parent = 'item' == $sf_request->show || 
QubitInformationObject::ROOT_ID == $resource->id ? $resource : 
$resource->parent ?>
+  <?php if ($parent->rgt - $item->rgt > 1): ?>
+    <li class="more" data-xhr-location="<?php echo url_for(array('module' => 
'informationobject', 'action' => 'treeView', 'slug' => $item->slug)) ?>">
+      <a href="#">...</a>
+    </li>
+  <?php endif; ?>
 <?php endif; ?>

-- 
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