Author: peter
Date: Thu Sep 17 11:29:04 2009
New Revision: 3370
Log:
simplify action block logic
Modified:
trunk/apps/qubit/modules/informationobject/templates/_actions.php
Modified: trunk/apps/qubit/modules/informationobject/templates/_actions.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/templates/_actions.php Thu Sep
17 11:16:48 2009 (r3369)
+++ trunk/apps/qubit/modules/informationobject/templates/_actions.php Thu Sep
17 11:29:04 2009 (r3370)
@@ -13,11 +13,7 @@
<?php endif; ?>
<?php endif; ?>
<?php if (SecurityPriviliges::editCredentials($sf_user,
'informationObject')): ?>
- <?php if (0 <
count(QubitRelation::getRelatedSubjectsByObjectId('QubitPhysicalObject',
$informationObject->getId(),
array('typeId'=>QubitTerm::HAS_PHYSICAL_OBJECT_ID)))): ?>
- <li><?php echo link_to(__('Edit physical storage'), array('module' =>
'informationobject', 'action' => 'editPhysicalObjects', 'id' =>
$informationObject->id)) ?></li>
- <?php else: ?>
<li><?php echo link_to(__('Link physical storage'), array('module' =>
'informationobject', 'action' => 'editPhysicalObjects', 'id' =>
$informationObject->id)) ?></li>
- <?php endif; ?>
<?php endif; ?>
<br /><div class="menu-extra">
<?php if (SecurityPriviliges::editCredentials($sf_user,
'informationObject')): ?>
--~--~---------~--~----~------------~-------~--~----~
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.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---