diff --git a/pandora_console/godmode/users/user_list.php b/pandora_console/godmode/users/user_list.php
index 9c9873a664..e0fe0d0871 100644
--- a/pandora_console/godmode/users/user_list.php
+++ b/pandora_console/godmode/users/user_list.php
@@ -511,34 +511,38 @@ foreach ($info as $user_id => $user_info) {
$data[4] = '';
if ($user_profiles !== false) {
- if (defined('METACONSOLE')) {
- $data[4] .= "
";
- foreach ($user_profiles as $row) {
+ $total_profile = 0;
+
+ $data[4] .= '
';
+ foreach ($user_profiles as $row) {
+ if ($total_profile <= 5) {
$data[4] .= "
";
$data[4] .= profile_get_name($row['id_perfil']);
$data[4] .= ' /
';
$data[4] .= "
";
$data[4] .= groups_get_name($row['id_grupo'], true);
$data[4] .= '
';
+
+ if ($total_profile == 0 && count($user_profiles) >= 5) {
+ $data[4] .= '
+ '.html_print_image('images/input_zoom_gray.png', true, ['title' => __('Show')]).'';
+ }
+
$data[4] .= '
';
$data[4] .= '
';
+ $data[4] .= '
';
+ } else {
+ $data[4] .= "
";
+ $data[4] .= '
';
+ $data[4] .= profile_get_name($row['id_perfil']);
+ $data[4] .= ' / '.groups_get_name($row['id_grupo'], true).'
';
+ $data[4] .= '
';
}
+ $total_profile++;
+ }
+
$data[4] .= '
';
- } else {
- $data[4] .= "
";
- foreach ($user_profiles as $row) {
- $data[4] .= '';
- $data[4] .= '';
- $data[4] .= profile_get_name($row['id_perfil']);
- $data[4] .= ' / ';
- $data[4] .= groups_get_name($row['id_grupo'], true);
- $data[4] .= ' | ';
- $data[4] .= '
';
- }
-
- $data[4] .= '
';
- }
} else {
$data[4] .= __('The user doesn\'t have any assigned profile/group');
}
@@ -588,3 +592,17 @@ if ($config['admin_can_add_user'] !== false) {
echo '
';
enterprise_hook('close_meta_frame');
+
+echo '';