Author: david
Date: Fri Aug 26 15:06:19 2011
New Revision: 9609
Log:
Hide digital object link and upload buttons if "upload_limit" for current
repository is zero
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 Fri Aug
26 14:56:51 2011 (r9608)
+++ trunk/apps/qubit/modules/informationobject/templates/_actions.php Fri Aug
26 15:06:19 2011 (r9609)
@@ -22,7 +22,7 @@
<li><?php echo link_to(__('Move'), array($resource, 'action' =>
'move')) ?></li>
- <?php if (0 != QubitSetting::getSettingByName('repository_quota')->value): ?>
+ <?php if (null === $resource->repository || 0 !=
$resource->repository->uploadLimit): ?>
<?php if (0 < count($resource->digitalObjects)): ?>
<li><?php echo link_to(__('Edit digital object'),
array($resource->digitalObjects[0], 'module' => 'digitalobject', 'action' =>
'edit')) ?></li>
--
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.