Author: jablko
Date: Mon Aug 24 11:37:00 2009
New Revision: 3063

Log:
Link repository or creators to show pages

Modified:
   trunk/apps/qubit/modules/informationobject/templates/listSuccess.php

Modified: trunk/apps/qubit/modules/informationobject/templates/listSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/templates/listSuccess.php        
Mon Aug 24 00:02:29 2009        (r3062)
+++ trunk/apps/qubit/modules/informationobject/templates/listSuccess.php        
Mon Aug 24 11:37:00 2009        (r3063)
@@ -49,13 +49,13 @@
   <?php if (sfConfig::get('app_multi_repository')): // multi-repository: show 
related repository ?>
     <td>
       <?php if (isset($informationObject->repository)): ?>
-        <?php echo render_title($informationObject->repository) ?>
+        <?php echo link_to(render_title($informationObject->repository), 
array('module' => 'repository', 'action' => 'show', 'id' => 
$informationObject->repository->id)) ?>
       <?php endif; ?>
     </td>
   <?php else: // NOT multi-repostiory: show creators as list ?>
     <td><ul class="nobullet">
     <?php foreach ($informationObject->creators as $creator): ?>
-      <li><?php echo render_title($creator) ?></li>
+      <li><?php echo link_to(render_title($creator), array('module' => 
'actor', 'action' => 'show', 'id' => $creator->id)) ?></li>
     <?php endforeach; ?>
     </ul></td>
   <?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.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to