Show group memberships in a tooltip
This commit is contained in:
@@ -11,7 +11,11 @@
|
||||
<span><a href="mailto:<?= $this->text->e($user['email']) ?>"><?= $this->text->e($user['email']) ?></a></span>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if (! empty($this->user->getGroupNames($user['id'])) ): ?>
|
||||
<span><i class="fa fa-fw fa-group aria-hidden="true"></i> <?= $this->user->getGroupNames($user['id']) ?></span>
|
||||
<?php if ( SHOW_GROUP_MEMBERSHIPS_IN_USERLIST ): ?>
|
||||
<?php $users_group_names = $this->user->getUsersGroupNames($user['id']); ?>
|
||||
<?php $groups_list_tooltip = t('%s is a member of the following group(s):', $user['name']) . ' ' . $users_group_names['full_list']; ?>
|
||||
<?php if ($users_group_names['has_groups']): ?>
|
||||
<span><i class="fa fa-fw fa-group aria-hidden="true" title="<?= $groups_list_tooltip ?>"></i> <?= $users_group_names['limited_list'] ?></span>
|
||||
<?php endif ?>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
</div>
|
||||
<ul class="panel">
|
||||
<li><?= t('Role:') ?> <strong><?= $this->user->getRoleName($user['role']) ?></strong></li>
|
||||
<li><?= t('Group membership(s):') ?> <strong><?= $this->user->getGroupNames($user['id']) ?></strong></li>
|
||||
<li><?= t('Group membership(s):') ?> <strong><?= $this->user->getUsersGroupNames($user['id'])['full_list'] ?></strong></li>
|
||||
<li><?= t('Account type:') ?> <strong><?= $user['is_ldap_user'] ? t('Remote') : t('Local') ?></strong></li>
|
||||
<li><?= $user['twofactor_activated'] == 1 ? t('Two factor authentication enabled') : t('Two factor authentication disabled') ?></li>
|
||||
<li><?= t('Number of failed login:') ?> <strong><?= $user['nb_failed_login'] ?></strong></li>
|
||||
|
||||
Reference in New Issue
Block a user