Author: sevein
Date: Thu Sep 15 13:31:47 2011
New Revision: 9733
Log:
Cosmetic change
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
15 11:52:14 2011 (r9732)
+++ trunk/apps/qubit/modules/informationobject/templates/_actions.php Thu Sep
15 13:31:47 2011 (r9733)
@@ -18,28 +18,25 @@
<li><?php echo link_to(__('Duplicate'), array('module' =>
'informationobject', 'action' => 'copy', 'source' => $resource->id)) ?></li>
<?php endif; ?>
-<?php if (QubitAcl::check($resource, 'update')): ?>
+ <?php if (QubitAcl::check($resource, 'update')): ?>
<li><?php echo link_to(__('Move'), array($resource, 'action' =>
'move')) ?></li>
- <?php if (null === $resource->repository || 0 !=
$resource->repository->uploadLimit): ?>
- <?php if (0 < count($resource->digitalObjects)): ?>
+ <?php if (null === $resource->repository || 0 !=
$resource->repository->uploadLimit): ?>
- <li><?php echo link_to(__('Edit digital object'),
array($resource->digitalObjects[0], 'module' => 'digitalobject', 'action' =>
'edit')) ?></li>
+ <?php if (0 < count($resource->digitalObjects)): ?>
+ <li><?php echo link_to(__('Edit digital object'),
array($resource->digitalObjects[0], 'module' => 'digitalobject', 'action' =>
'edit')) ?></li>
+ <?php else: ?>
+ <li><?php echo link_to(__('Link digital object'), array('module'
=> 'digitalobject', 'action' => 'add', 'informationObject' => $resource->id))
?></li>
+ <?php endif; // has digital object ?>
- <?php else: ?>
+ <li><?php echo link_to(__('Import digital objects'), array('module'
=> 'digitalobject', 'action' => 'multiFileUpload', 'informationObject' =>
$resource->id)) ?></li>
- <li><?php echo link_to(__('Link digital object'), array('module' =>
'digitalobject', 'action' => 'add', 'informationObject' => $resource->id))
?></li>
-
- <?php endif; // has digital object ?>
-
- <li><?php echo link_to(__('Import digital objects'), array('module' =>
'digitalobject', 'action' => 'multiFileUpload', 'informationObject' =>
$resource->id)) ?></li>
-
- <?php endif; // upload quota is non-zero ?>
+ <?php endif; // upload quota is non-zero ?>
<li><?php echo link_to(__('Link physical storage'), array($resource,
'module' => 'informationobject', 'action' => 'editPhysicalObjects')) ?></li>
-<?php endif; // user has update permission ?>
+ <?php endif; // user has update permission ?>
</ul>
</div>
--
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.