summaryrefslogtreecommitdiff
path: root/app/Template/user_sidebar.php
blob: 16532143adc0d189c385ac727d4eb7af27178c7c (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
<div class="sidebar">
    <h2><?= t('Actions') ?></h2>
    <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'])): ?>
            <li>
                <?= Helper\a(t('Edit profile'), 'user', 'edit', array('user_id' => $user['id'])) ?>
            </li>

            <?php if ($user['is_ldap_user'] == 0): ?>
                <li>
                    <?= Helper\a(t('Change password'), 'user', 'password', array('user_id' => $user['id'])) ?>
                </li>
            <?php endif ?>

            <li>
                <?= Helper\a(t('Email notifications'), 'user', 'notifications', array('user_id' => $user['id'])) ?>
            </li>
            <li>
                <?= Helper\a(t('External accounts'), 'user', 'external', array('user_id' => $user['id'])) ?>
            </li>
            <li>
                <?= Helper\a(t('Last logins'), 'user', 'last', array('user_id' => $user['id'])) ?>
            </li>
            <li>
                <?= Helper\a(t('Persistent connections'), 'user', 'sessions', array('user_id' => $user['id'])) ?>
            </li>
        <?php endif ?>

        <?php if (Helper\is_admin()): ?>
            <li>
                <?= Helper\a(t('Remove'), 'user', 'remove', array('user_id' => $user['id'])) ?>
            </li>
        <?php endif ?>
    </ul>
</div>