Author: jablko
Date: Sat Aug 29 16:16:34 2009
New Revision: 3121
Log:
Take advantage of link_to_if() helper
Modified:
trunk/apps/qubit/modules/informationobject/templates/showDcSuccess.php
trunk/apps/qubit/modules/informationobject/templates/showIsadSuccess.php
trunk/apps/qubit/modules/informationobject/templates/showModsSuccess.php
trunk/apps/qubit/modules/informationobject/templates/showRadSuccess.php
Modified: trunk/apps/qubit/modules/informationobject/templates/showDcSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/templates/showDcSuccess.php
Sat Aug 29 15:56:16 2009 (r3120)
+++ trunk/apps/qubit/modules/informationobject/templates/showDcSuccess.php
Sat Aug 29 16:16:34 2009 (r3121)
@@ -5,11 +5,7 @@
<tr>
<td colspan="2" class="headerCell">
- <?php if (SecurityPriviliges::editCredentials($sf_user,
'informationObject')): ?>
- <?php echo link_to(render_title(QubitDc::getLabel($informationObject)),
array('module' => 'informationobject', 'action' => 'edit', 'id' =>
$informationObject->id)) ?>
- <?php else: ?>
- <?php echo render_title(QubitDc::getLabel($informationObject)) ?>
- <?php endif; ?>
+ <?php echo link_to_if(SecurityPriviliges::editCredentials($sf_user,
'informationObject'), render_title(QubitDc::getLabel($informationObject)),
array('module' => 'informationobject', 'action' => 'edit', 'id' =>
$informationObject->id)) ?>
</td>
</tr>
Modified:
trunk/apps/qubit/modules/informationobject/templates/showIsadSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/templates/showIsadSuccess.php
Sat Aug 29 15:56:16 2009 (r3120)
+++ trunk/apps/qubit/modules/informationobject/templates/showIsadSuccess.php
Sat Aug 29 16:16:34 2009 (r3121)
@@ -5,11 +5,7 @@
<tr>
<td colspan="2" class="headerCell">
- <?php if (SecurityPriviliges::editCredentials($sf_user,
'informationObject')): ?>
- <?php echo link_to(render_title(QubitIsad::getLabel($informationObject)),
array('module' => 'informationobject', 'action' => 'edit', 'id' =>
$informationObject->id)) ?>
- <?php else: ?>
- <?php echo render_title(QubitIsad::getLabel($informationObject)) ?>
- <?php endif; ?>
+ <?php echo link_to_if(SecurityPriviliges::editCredentials($sf_user,
'informationObject'), render_title(QubitIsad::getLabel($informationObject)),
array('module' => 'informationobject', 'action' => 'edit', 'id' =>
$informationObject->id)) ?>
</td>
</tr>
Modified:
trunk/apps/qubit/modules/informationobject/templates/showModsSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/templates/showModsSuccess.php
Sat Aug 29 15:56:16 2009 (r3120)
+++ trunk/apps/qubit/modules/informationobject/templates/showModsSuccess.php
Sat Aug 29 16:16:34 2009 (r3121)
@@ -5,11 +5,7 @@
<tr>
<td colspan="2" class="headerCell">
- <?php if (SecurityPriviliges::editCredentials($sf_user,
'informationObject')): ?>
- <?php echo link_to(render_title(QubitDc::getLabel($informationObject)),
array('module' => 'informationobject', 'action' => 'edit', 'id' =>
$informationObject->id)) ?>
- <?php else: ?>
- <?php echo render_title(QubitDc::getLabel($informationObject)) ?>
- <?php endif; ?>
+ <?php echo link_to_if(SecurityPriviliges::editCredentials($sf_user,
'informationObject'), render_title(QubitDc::getLabel($informationObject)),
array('module' => 'informationobject', 'action' => 'edit', 'id' =>
$informationObject->id)) ?>
</td>
</tr>
Modified:
trunk/apps/qubit/modules/informationobject/templates/showRadSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/templates/showRadSuccess.php
Sat Aug 29 15:56:16 2009 (r3120)
+++ trunk/apps/qubit/modules/informationobject/templates/showRadSuccess.php
Sat Aug 29 16:16:34 2009 (r3121)
@@ -5,12 +5,7 @@
<tr>
<td colspan="2" class="headerCell">
- <?php if (SecurityPriviliges::editCredentials($sf_user,
'informationObject')): ?>
- <?php echo link_to(render_title(QubitRad::getLabel($informationObject)),
- array('module' => 'informationobject', 'action' => 'edit', 'id' =>
$informationObject->id)) ?>
- <?php else: ?>
- <?php echo render_title(QubitRad::getLabel($informationObject)) ?>
- <?php endif; ?>
+ <?php echo link_to_if(SecurityPriviliges::editCredentials($sf_user,
'informationObject'), render_title(QubitRad::getLabel($informationObject)),
array('module' => 'informationobject', 'action' => 'edit', 'id' =>
$informationObject->id)) ?>
</td>
</tr>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---