diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-02-26 12:17:39 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-02-26 12:17:39 -0500 |
commit | 159c31cd3f23f45c1cf51c71f1049714ea603eb3 (patch) | |
tree | 7f54c6bea694dba49d68a4faf4481ed95edf4563 /app/Template/user_list/user_icons.php | |
parent | 954b7324f08e633087a1f6809a80c5892e39bcb0 (diff) |
Redesign users list layout
Diffstat (limited to 'app/Template/user_list/user_icons.php')
-rw-r--r-- | app/Template/user_list/user_icons.php | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/app/Template/user_list/user_icons.php b/app/Template/user_list/user_icons.php new file mode 100644 index 00000000..532526bb --- /dev/null +++ b/app/Template/user_list/user_icons.php @@ -0,0 +1,55 @@ +<div class="table-list-icons"> + <?php if ($user['notifications_enabled'] == 1): ?> + <span title="<?= t('Notifications are activated') ?>"> + <i class="fa fa-bell-o" aria-hidden="true"></i> + </span> + <?php endif ?> + + <?php if ($user['notifications_enabled'] == 0): ?> + <span title="<?= t('Notifications are disabled') ?>"> + <i class="fa fa-bell-slash-o" aria-hidden="true"></i> + </span> + <?php endif ?> + + <?php if ($user['twofactor_activated'] == 1): ?> + <span title="<?= t('Two factor authentication enabled') ?>"> + <i class="fa fa-key" aria-hidden="true"></i> + </span> + <?php endif ?> + + <?php if ($user['is_ldap_user'] == 1): ?> + <span title="<?= t('Remote user') ?>"> + <i class="fa fa-cloud" aria-hidden="true"></i> + </span> + <?php endif ?> + + <?php if ($user['lock_expiration_date'] != 0): ?> + <span title="<?= t('Account locked until:') ?> <?= $this->dt->datetime($user['lock_expiration_date']) ?>"> + <i class="fa fa-lock" aria-hidden="true"></i> + </span> + <?php endif ?> + + <?php if ($user['role'] == 'app-admin'): ?> + <span title="<?= $this->user->getRoleName($user['role']) ?>"> + <i class="fa fa-star" aria-hidden="true"></i> + </span> + <?php endif ?> + + <?php if ($user['role'] == 'app-manager'): ?> + <span title="<?= $this->user->getRoleName($user['role']) ?>"> + <i class="fa fa-star-half-o" aria-hidden="true"></i> + </span> + <?php endif ?> + + <?php if ($user['role'] == 'app-user'): ?> + <span title="<?= $this->user->getRoleName($user['role']) ?>"> + <i class="fa fa-star-o" aria-hidden="true"></i> + </span> + <?php endif ?> + + <?php if ($user['is_active'] == 0): ?> + <span title="<?= t('User disabled') ?>"> + <i class="fa fa-ban" aria-hidden="true"></i> + </span> + <?php endif ?> +</div>
\ No newline at end of file |