diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-11-02 15:06:41 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-11-02 15:06:41 -0500 |
commit | 37332ae2222706f8fb330dae780dc938512edcf5 (patch) | |
tree | 9161d539cc289179339162d6922c4d9dd2c30e63 /app/Template/user_sidebar.php | |
parent | 8fe5df39d97ef851d11931fcf7e906ec08838ef7 (diff) |
Change layout (experimental)
Diffstat (limited to 'app/Template/user_sidebar.php')
-rw-r--r-- | app/Template/user_sidebar.php | 41 |
1 files changed, 19 insertions, 22 deletions
diff --git a/app/Template/user_sidebar.php b/app/Template/user_sidebar.php index 9d8f8b46..16532143 100644 --- a/app/Template/user_sidebar.php +++ b/app/Template/user_sidebar.php @@ -1,42 +1,39 @@ -<div class="project-show-sidebar"> +<div class="sidebar"> <h2><?= t('Actions') ?></h2> - <div class="user-show-actions"> - <ul> - <li> - <a href="?controller=user&action=show&user_id=<?= $user['id'] ?>"><?= t('Summary') ?></a> - </li> + <ul> + <li> + <?= Helper\a(t('Summary'), 'user', 'show', array('user_id' => $user['id'])) ?> + </li> - <?php if (Helper\is_admin() || Helper\is_current_user($user['id'])): ?> + <?php if (Helper\is_admin() || Helper\is_current_user($user['id'])): ?> <li> - <a href="?controller=user&action=edit&user_id=<?= $user['id'] ?>"><?= t('Edit profile') ?></a> + <?= Helper\a(t('Edit profile'), 'user', 'edit', array('user_id' => $user['id'])) ?> </li> <?php if ($user['is_ldap_user'] == 0): ?> - <li> - <a href="?controller=user&action=password&user_id=<?= $user['id'] ?>"><?= t('Change password') ?></a> - </li> + <li> + <?= Helper\a(t('Change password'), 'user', 'password', array('user_id' => $user['id'])) ?> + </li> <?php endif ?> <li> - <a href="?controller=user&action=notifications&user_id=<?= $user['id'] ?>"><?= t('Email notifications') ?></a> + <?= Helper\a(t('Email notifications'), 'user', 'notifications', array('user_id' => $user['id'])) ?> </li> <li> - <a href="?controller=user&action=external&user_id=<?= $user['id'] ?>"><?= t('External accounts') ?></a> + <?= Helper\a(t('External accounts'), 'user', 'external', array('user_id' => $user['id'])) ?> </li> <li> - <a href="?controller=user&action=last&user_id=<?= $user['id'] ?>"><?= t('Last logins') ?></a> + <?= Helper\a(t('Last logins'), 'user', 'last', array('user_id' => $user['id'])) ?> </li> <li> - <a href="?controller=user&action=sessions&user_id=<?= $user['id'] ?>"><?= t('Persistent connections') ?></a> + <?= Helper\a(t('Persistent connections'), 'user', 'sessions', array('user_id' => $user['id'])) ?> </li> - <?php endif ?> + <?php endif ?> - <?php if (Helper\is_admin()): ?> + <?php if (Helper\is_admin()): ?> <li> - <a href="?controller=user&action=remove&user_id=<?= $user['id'] ?>"><?= t('Remove') ?></a> + <?= Helper\a(t('Remove'), 'user', 'remove', array('user_id' => $user['id'])) ?> </li> - <?php endif ?> - - </ul> - </div> + <?php endif ?> + </ul> </div>
\ No newline at end of file |