Author: david
Date: Tue Sep 15 16:39:30 2009
New Revision: 3326

Log:
Switch to array() syntax for link helpers.

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

Modified: trunk/apps/qubit/modules/user/templates/listSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/user/templates/listSuccess.php     Tue Sep 15 
16:28:09 2009        (r3325)
+++ trunk/apps/qubit/modules/user/templates/listSuccess.php     Tue Sep 15 
16:39:30 2009        (r3326)
@@ -3,7 +3,7 @@
 <table class="list">
 <thead>
 <tr>
-  <th><?php echo __('user name'); ?> <span class="th-link"><?php echo 
link_to(__('add new'), 'user/create') ?></span></th>
+  <th><?php echo __('user name'); ?> <span class="th-link"><?php echo 
link_to(__('add new'), array('module' => 'user', 'action' => 'create')) 
?></span></th>
   <th><?php echo __('email'); ?></th>
   <th><?php echo __('user roles'); ?></th>
 </tr>
@@ -11,12 +11,12 @@
 <tbody>
 <?php foreach ($users->getResults() as $user): ?>
 <tr>
-      <td><?php echo link_to($user->getUsername(), 
'user/edit?id='.$user->getId()) ?></td>
-      <td><?php echo $user->getEmail() ?></td>
-      <td><?php foreach ($user->getRoles() as $role): ?>
-            <?php echo $role ?><br />
-          <?php endforeach; ?>
-      </td>
+  <td><?php echo link_to($user->getUsername(), array('module' => 'user', 
'action' => 'edit', 'id' => $user->getId())) ?></td>
+  <td><?php echo $user->getEmail() ?></td>
+  <td><?php foreach ($user->getRoles() as $role): ?>
+        <?php echo $role ?><br />
+      <?php endforeach; ?>
+  </td>
 </tr>
 <?php endforeach; ?>
 </tbody>
@@ -26,14 +26,14 @@
 <div class="pager">
   <?php $links = $users->getLinks(); ?>
   <?php if ($users->getPage() != $users->getFirstPage()): ?>
- <?php echo link_to('< '.__('previous'), 
'user/list?page='.($users->getPage()-1)) ?>
+ <?php echo link_to('< '.__('previous'), array('module' => 'user', 'action' => 
'list', 'page' => $users->getPage()-1)) ?>
   <?php endif; ?>
   <?php foreach ($links as $page): ?>
-    <?php echo ($page == $users->getPage()) ? '<strong>'.$page.'</strong>' : 
link_to($page, 'user/list?page='.$page) ?>
+    <?php echo ($page == $users->getPage()) ? '<strong>'.$page.'</strong>' : 
link_to($page, array('module' => 'user', 'action' => 'list', 'page' => $page)) 
?>
     <?php if ($page != $users->getCurrentMaxLink()): ?> <?php endif ?>
   <?php endforeach ?>
   <?php if ($users->getPage() != $users->getLastPage()): ?>
- <?php echo link_to(__('next').' >', 'user/list?page='.($users->getPage()+1)) 
?>
+ <?php echo link_to(__('next').' >', array('module' => 'user', 'action' => 
'list', 'page' => $users->getPage()+1)) ?>
   <?php endif; ?>
 </div>
 <?php endif ?>
@@ -43,5 +43,5 @@
 </div>
 
 <div class="menu-action" style="padding-top: 10px;">
-<?php echo link_to (__('add new user'), 'user/create') ?>
+<?php echo link_to (__('add new user'), array('module' => 'user', 'action' => 
'create')) ?>
 </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.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to