diff options
Diffstat (limited to 'app/Template/user/index.php')
-rw-r--r-- | app/Template/user/index.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/Template/user/index.php b/app/Template/user/index.php index d6b0fecf..6b4396b2 100644 --- a/app/Template/user/index.php +++ b/app/Template/user/index.php @@ -1,8 +1,8 @@ <section id="main"> <div class="page-header"> - <?php if ($this->userSession->isAdmin()): ?> + <?php if ($this->user->isAdmin()): ?> <ul> - <li><i class="fa fa-plus fa-fw"></i><?= $this->a(t('New user'), 'user', 'create') ?></li> + <li><i class="fa fa-plus fa-fw"></i><?= $this->url->link(t('New user'), 'user', 'create') ?></li> </ul> <?php endif ?> </div> @@ -26,10 +26,10 @@ <?php foreach ($paginator->getCollection() as $user): ?> <tr> <td> - <?= $this->a('#'.$user['id'], 'user', 'show', array('user_id' => $user['id'])) ?> + <?= $this->url->link('#'.$user['id'], 'user', 'show', array('user_id' => $user['id'])) ?> </td> <td> - <?= $this->a($this->e($user['username']), 'user', 'show', array('user_id' => $user['id'])) ?> + <?= $this->url->link($this->e($user['username']), 'user', 'show', array('user_id' => $user['id'])) ?> </td> <td> <?= $this->e($user['name']) ?> |