forked from CakeDC/users
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsidebar.ctp
More file actions
18 lines (18 loc) · 1.17 KB
/
Copy pathsidebar.ctp
File metadata and controls
18 lines (18 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<div class="actions">
<ul>
<?php if (!$this->Session->read('Auth.User.id')) : ?>
<li><?php echo $this->Html->link(__d('users', 'Login'), array('plugin' => 'Users', 'controller' => 'users', 'action' => 'login')); ?></li>
<?php if (!empty($allowRegistration) && $allowRegistration) : ?>
<li><?php echo $this->Html->link(__d('users', 'Register an account'), array('plugin' => 'Users', 'controller' => 'users', 'action' => 'add')); ?></li>
<?php endif; ?>
<?php else : ?>
<li><?php echo $this->Html->link(__d('users', 'Logout'), array('plugin' => 'Users', 'controller' => 'users', 'action' => 'logout')); ?>
<li><?php echo $this->Html->link(__d('users', 'My Account'), array('plugin' => 'Users', 'controller' => 'users', 'action' => 'edit')); ?>
<li><?php echo $this->Html->link(__d('users', 'Change password'), array('plugin' => 'Users', 'controller' => 'users', 'action' => 'change_password')); ?>
<?php endif ?>
<?php if($this->Session->read('Auth.User.is_admin')) : ?>
<li> </li>
<li><?php echo $this->Html->link(__d('users', 'List Users'), array('plugin' => 'Users', 'controller' => 'users', 'action' => 'index'));?></li>
<?php endif; ?>
</ul>
</div>