summaryrefslogtreecommitdiff
path: root/app/Templates/user_sidebar.php
blob: 9d8f8b46275ef8c78b6e3af95e5400c35b85cc65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<div class="project-show-sidebar">
    <h2><?= t('Actions') ?></h2>
    <div class="user-show-actions">
        <ul>
            <li>
                <a href="?controller=user&amp;action=show&amp;user_id=<?= $user['id'] ?>"><?= t('Summary') ?></a>
            </li>

            <?php if (Helper\is_admin() || Helper\is_current_user($user['id'])): ?>
            <li>
                <a href="?controller=user&amp;action=edit&amp;user_id=<?= $user['id'] ?>"><?= t('Edit profile') ?></a>
            </li>

            <?php if ($user['is_ldap_user'] == 0): ?>
            <li>
                <a href="?controller=user&amp;action=password&amp;user_id=<?= $user['id'] ?>"><?= t('Change password') ?></a>
            </li>
            <?php endif ?>

            <li>
                <a href="?controller=user&amp;action=notifications&amp;user_id=<?= $user['id'] ?>"><?= t('Email notifications') ?></a>
            </li>
            <li>
                <a href="?controller=user&amp;action=external&amp;user_id=<?= $user['id'] ?>"><?= t('External accounts') ?></a>
            </li>
            <li>
                <a href="?controller=user&amp;action=last&amp;user_id=<?= $user['id'] ?>"><?= t('Last logins') ?></a>
            </li>
            <li>
                <a href="?controller=user&amp;action=sessions&amp;user_id=<?= $user['id'] ?>"><?= t('Persistent connections') ?></a>
            </li>
            <?php endif ?>

            <?php if (Helper\is_admin()): ?>
            <li>
                <a href="?controller=user&amp;action=remove&amp;user_id=<?= $user['id'] ?>"><?= t('Remove') ?></a>
            </li>
            <?php endif ?>

        </ul>
    </div>
</div>