Author: jablko
Date: Thu Aug 27 12:58:17 2009
New Revision: 3091
Log:
Cosmetic changes, take advantage of render_title() and __toString()
Modified:
trunk/apps/qubit/modules/actor/templates/listSuccess.php
trunk/apps/qubit/modules/repository/templates/listSuccess.php
Modified: trunk/apps/qubit/modules/actor/templates/listSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/actor/templates/listSuccess.php Thu Aug 27
12:54:15 2009 (r3090)
+++ trunk/apps/qubit/modules/actor/templates/listSuccess.php Thu Aug 27
12:58:17 2009 (r3091)
@@ -29,12 +29,10 @@
<td>
<div>
- <?php echo
link_to(render_title($actor->getAuthorizedFormOfName(array('cultureFallback' =>
true))), array('module' => 'actor', 'action' => 'show', 'id' =>
$actor->getId())) ?>
+ <?php echo link_to(render_title($actor), array('module' => 'actor',
'action' => 'show', 'id' => $actor->id)) ?>
</div>
</td><td>
- <?php if ($actor->getEntityTypeId()): ?>
- <?php if (is_null($entityType = $actor->getEntityType()->getName()))
$entityType = $actor->getEntityType()->getName(array('sourceCulture' => true));
echo $entityType; ?>
- <?php endif; ?>
+ <?php echo $actor->entityType; ?>
</td>
</tr><?php endforeach; ?></tbody></table>
<?php echo get_partial('default/pager', array('pager' => $pager)) ?>
Modified: trunk/apps/qubit/modules/repository/templates/listSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/repository/templates/listSuccess.php Thu Aug
27 12:54:15 2009 (r3090)
+++ trunk/apps/qubit/modules/repository/templates/listSuccess.php Thu Aug
27 12:58:17 2009 (r3091)
@@ -59,15 +59,12 @@
<?php foreach ($repositories as $repository): ?>
<tr>
<td>
- <?php $repositoryName =
$repository->getAuthorizedFormOfName(array('cultureFallback' => true)); ?>
- <?php echo link_to(render_title($repositoryName), array('module' =>
'repository', 'action' => 'show', 'id' => $repository->getId())) ?>
+ <?php echo link_to(render_title($repository), array('module' =>
'repository', 'action' => 'show', 'id' => $repository->id)) ?>
</td>
<td>
- <?php if ($repository->getTypeId()): ?>
- <?php if (is_null($repositoryType = $repository->getType()->getName()))
$repositoryType = $repository->getType()->getName(array('sourceCulture' =>
true)); echo $repositoryType; ?>
- <?php endif; ?>
+ <?php echo $repository->type; ?>
</td>
- <td><?php echo $repository->getCountry() ?></td>
+ <td><?php echo $repository->country ?></td>
</tr>
<?php endforeach; ?>
</tbody>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---