diff --git a/pandora_console/extensions/module_groups.php b/pandora_console/extensions/module_groups.php index affcff93de..0062c25a13 100644 --- a/pandora_console/extensions/module_groups.php +++ b/pandora_console/extensions/module_groups.php @@ -302,7 +302,7 @@ function mainModuleGroups() $table->style[0] = 'color: #ffffff; background-color: #373737; font-weight: bolder; min-width: 230px;'; $table->width = '100%'; - if ($config['style'] === 'pandora_black') { + if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $background_color = '#333'; } else { $background_color = '#fff'; diff --git a/pandora_console/extensions/realtime_graphs.php b/pandora_console/extensions/realtime_graphs.php index cd417e3a43..908807d2d0 100644 --- a/pandora_console/extensions/realtime_graphs.php +++ b/pandora_console/extensions/realtime_graphs.php @@ -42,7 +42,7 @@ function pandora_realtime_graphs() global $config; check_login(); - if ($config['style'] === 'pandora_black') { + if ($config['style'] === 'pandora_black' && !is_metaconsole()) { ui_require_css_file('pandora_black', 'include/styles/', true); } diff --git a/pandora_console/godmode/agentes/module_manager_editor_common.php b/pandora_console/godmode/agentes/module_manager_editor_common.php index 58d38e48fb..265615f28c 100644 --- a/pandora_console/godmode/agentes/module_manager_editor_common.php +++ b/pandora_console/godmode/agentes/module_manager_editor_common.php @@ -98,7 +98,7 @@ function add_component_selection($id_network_component_type) global $table_simple; global $config; - if ($config['style'] === 'pandora_black') { + if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $background_row = 'background-color: #444'; } else { $background_row = 'background-color: #cfcfcf'; diff --git a/pandora_console/godmode/reporting/reporting_builder.item_editor.php b/pandora_console/godmode/reporting/reporting_builder.item_editor.php index 62d8aa92a0..fb93b3b30d 100755 --- a/pandora_console/godmode/reporting/reporting_builder.item_editor.php +++ b/pandora_console/godmode/reporting/reporting_builder.item_editor.php @@ -3914,7 +3914,7 @@ function print_SLA_list($width, $action, $idItem=null) '; echo html_print_select( diff --git a/pandora_console/godmode/setup/setup_ehorus.php b/pandora_console/godmode/setup/setup_ehorus.php index e65371c77c..7d6eaef617 100644 --- a/pandora_console/godmode/setup/setup_ehorus.php +++ b/pandora_console/godmode/setup/setup_ehorus.php @@ -116,7 +116,7 @@ $table_remote->data['ehorus_test'] = $row; // Print. echo '
'.__('Home screen').ui_print_help_tip(__('User can customize the home page. By default, will display \'Agent Detail\'. Example: Select \'Other\' and type index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=1 to show agent detail view'), true).'
'; $values = [ @@ -394,10 +394,7 @@ if (!$meta) { $home_screen .= ''.__('Skin').':
'; @@ -406,7 +403,16 @@ if (!$meta) { } } else { $home_screen = ''; - $skin = ''; + // User only can change skins if has more than one group. + if (function_exists('skins_print_select')) { + if (count($usr_groups) > 1) { + $skin = ''.__('Skin').ui_print_help_tip( + __('This change will only apply to nodes'), + true + ).'
'; + $skin .= skins_print_select($id_usr, 'skin', $user_info['id_skin'], '', __('None'), 0, true).''.__('Timezone').ui_print_help_tip(__('The timezone must be that of the associated server.'), true).'
'; diff --git a/pandora_console/operation/visual_console/public_view.php b/pandora_console/operation/visual_console/public_view.php index 759888aabb..36ec6bf722 100644 --- a/pandora_console/operation/visual_console/public_view.php +++ b/pandora_console/operation/visual_console/public_view.php @@ -97,7 +97,7 @@ $visualConsoleData = $visualConsole->toArray(); $visualConsoleName = $visualConsoleData['name']; $bg_color = ''; -if ($config['style'] === 'pandora_black') { +if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $bg_color = 'style="background-color: #222"'; } diff --git a/pandora_console/operation/visual_console/view.php b/pandora_console/operation/visual_console/view.php index 8b51d0a8f6..7e18e8ad30 100644 --- a/pandora_console/operation/visual_console/view.php +++ b/pandora_console/operation/visual_console/view.php @@ -269,7 +269,7 @@ if ($pure === false) { $class_basic_chart = 'basic_chart_min link-create-item'; $class_delete = 'delete_item delete_min'; $class_copy = 'copy_item'; - if ($config['style'] === 'pandora_black') { + if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $class_camera = 'camera_min_white link-create-item'; $class_percentile = 'percentile_item_min_white link-create-item'; $class_module_graph = 'graph_min_white link-create-item'; @@ -417,7 +417,7 @@ if ($pure === false) { } $bg_color = ''; -if ($config['style'] === 'pandora_black') { +if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $bg_color = 'style="background-color: #222"'; } diff --git a/pandora_console/views/dashboard/cell.php b/pandora_console/views/dashboard/cell.php index 1ec35ae777..b58fae78a6 100644 --- a/pandora_console/views/dashboard/cell.php +++ b/pandora_console/views/dashboard/cell.php @@ -78,11 +78,12 @@ if (empty($options['background']) === true) { $options['background'] = '#ffffff'; } - if ($config['style'] === 'pandora_black') { + if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $options['background'] = '#222222'; } } else if ($options['background'] === '#ffffff' && $config['style'] === 'pandora_black' + && !is_metaconsole() ) { $options['background'] = '#222222'; } else if ($options['background'] === '#222222'