Rename Locales and Templates folders to be more consistent
This commit is contained in:
42
app/Template/user_sidebar.php
Normal file
42
app/Template/user_sidebar.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<div class="project-show-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>
|
||||
|
||||
<?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>
|
||||
</li>
|
||||
|
||||
<?php if ($user['is_ldap_user'] == 0): ?>
|
||||
<li>
|
||||
<a href="?controller=user&action=password&user_id=<?= $user['id'] ?>"><?= t('Change password') ?></a>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
|
||||
<li>
|
||||
<a href="?controller=user&action=notifications&user_id=<?= $user['id'] ?>"><?= t('Email notifications') ?></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="?controller=user&action=external&user_id=<?= $user['id'] ?>"><?= t('External accounts') ?></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="?controller=user&action=last&user_id=<?= $user['id'] ?>"><?= t('Last logins') ?></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="?controller=user&action=sessions&user_id=<?= $user['id'] ?>"><?= t('Persistent connections') ?></a>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if (Helper\is_admin()): ?>
|
||||
<li>
|
||||
<a href="?controller=user&action=remove&user_id=<?= $user['id'] ?>"><?= t('Remove') ?></a>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user