diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index 3b193b8975..05eeeb483d 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -8230,3 +8230,40 @@ function ui_update_name_fav_element($id_element, $section, $label) ] ); } + + +function ui_print_status_vulnerability_div(float $score) +{ + $return = ''; + $class = 'status_rounded_rectangles forced_title'; + if (((float) $score) <= 5) { + return ui_print_div('group_view_ok '.$class, $score); + } + + if (((float) $score) > 5 && ((float) $score) <= 7.5) { + return ui_print_div('group_view_warn '.$class, $score); + } + + if (((float) $score) > 7.5) { + return ui_print_div('group_view_crit '.$class, $score); + } + + return $return; +} + + +function ui_print_status_secmon_div($status) +{ + $class = 'status_rounded_rectangles forced_title'; + if (($status) === 'normal') { + return ui_print_div('group_view_ok '.$class, __('normal')); + } + + if (($status) === 'warning') { + return ui_print_div('group_view_warn '.$class, __('warning')); + } + + if (($status) === 'critical') { + return ui_print_div('group_view_crit '.$class, __('critical')); + } +} \ No newline at end of file diff --git a/pandora_console/include/styles/pandora_black.css b/pandora_console/include/styles/pandora_black.css index c2afb2c737..e2f5eb1639 100644 --- a/pandora_console/include/styles/pandora_black.css +++ b/pandora_console/include/styles/pandora_black.css @@ -1871,3 +1871,8 @@ a.pandora_pagination, #general-tactical-view #horizontalBar .labels .label span { color: black; } + +#score-bar .labels-bar span, +#score-bar .labels-bar div { + color: white; +} diff --git a/pandora_console/include/styles/vulnerabilities.css b/pandora_console/include/styles/vulnerabilities.css index 11c05556ec..d724a6b5e5 100644 --- a/pandora_console/include/styles/vulnerabilities.css +++ b/pandora_console/include/styles/vulnerabilities.css @@ -119,7 +119,7 @@ .dt-buttons { display: flex; margin: 10px; - margin-left: 0px; + margin-left: 10px; position: relative; } .dt-buttons button { @@ -148,6 +148,15 @@ .col-md-7 { width: 80%; } + .col-sl-12 { + width: 100%; + display: flex; + } + + .col-sl-4 { + width: 33%; + margin: 10px; + } } @keyframes load {