2014-12-22 19:15:38 +01:00
|
|
|
<div class="sidebar">
|
|
|
|
<h2><?= t('Actions') ?></h2>
|
|
|
|
<ul>
|
|
|
|
<li>
|
2015-01-16 14:23:05 +01:00
|
|
|
<?= $this->a(t('Summary'), 'user', 'show', array('user_id' => $user['id'])) ?>
|
2014-12-22 19:15:38 +01:00
|
|
|
</li>
|
|
|
|
|
2015-01-16 14:23:05 +01:00
|
|
|
<?php if ($this->userSession->isAdmin() || $this->userSession->isCurrentUser($user['id'])): ?>
|
2014-12-22 19:15:38 +01:00
|
|
|
<li>
|
2015-01-16 14:23:05 +01:00
|
|
|
<?= $this->a(t('Edit profile'), 'user', 'edit', array('user_id' => $user['id'])) ?>
|
2014-12-22 19:15:38 +01:00
|
|
|
</li>
|
|
|
|
|
|
|
|
<?php if ($user['is_ldap_user'] == 0): ?>
|
|
|
|
<li>
|
2015-01-16 14:23:05 +01:00
|
|
|
<?= $this->a(t('Change password'), 'user', 'password', array('user_id' => $user['id'])) ?>
|
2014-12-22 19:15:38 +01:00
|
|
|
</li>
|
|
|
|
<?php endif ?>
|
|
|
|
|
|
|
|
<li>
|
2015-01-16 14:23:05 +01:00
|
|
|
<?= $this->a(t('Email notifications'), 'user', 'notifications', array('user_id' => $user['id'])) ?>
|
2014-12-22 19:15:38 +01:00
|
|
|
</li>
|
|
|
|
<li>
|
2015-01-16 14:23:05 +01:00
|
|
|
<?= $this->a(t('External accounts'), 'user', 'external', array('user_id' => $user['id'])) ?>
|
2014-12-22 19:15:38 +01:00
|
|
|
</li>
|
|
|
|
<li>
|
2015-01-16 14:23:05 +01:00
|
|
|
<?= $this->a(t('Last logins'), 'user', 'last', array('user_id' => $user['id'])) ?>
|
2014-12-22 19:15:38 +01:00
|
|
|
</li>
|
|
|
|
<li>
|
2015-01-16 14:23:05 +01:00
|
|
|
<?= $this->a(t('Persistent connections'), 'user', 'sessions', array('user_id' => $user['id'])) ?>
|
2014-12-22 19:15:38 +01:00
|
|
|
</li>
|
|
|
|
<?php endif ?>
|
|
|
|
|
2015-01-16 14:23:05 +01:00
|
|
|
<?php if ($this->userSession->isAdmin() && ! $this->userSession->isCurrentUser($user['id'])): ?>
|
2014-12-22 19:15:38 +01:00
|
|
|
<li>
|
2015-01-16 14:23:05 +01:00
|
|
|
<?= $this->a(t('Remove'), 'user', 'remove', array('user_id' => $user['id'])) ?>
|
2014-12-22 19:15:38 +01:00
|
|
|
</li>
|
|
|
|
<?php endif ?>
|
|
|
|
</ul>
|
|
|
|
</div>
|