mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
Merge branch 'ent-12249-vista-de-seguridad-por-agentes' into ent-12250-informe-detallado-de-seguridad
This commit is contained in:
commit
7ec2871c3e
@ -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'));
|
||||||
|
}
|
||||||
|
}
|
@ -1871,3 +1871,8 @@ a.pandora_pagination,
|
|||||||
#general-tactical-view #horizontalBar .labels .label span {
|
#general-tactical-view #horizontalBar .labels .label span {
|
||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#score-bar .labels-bar span,
|
||||||
|
#score-bar .labels-bar div {
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
@ -119,7 +119,7 @@
|
|||||||
.dt-buttons {
|
.dt-buttons {
|
||||||
display: flex;
|
display: flex;
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
margin-left: 0px;
|
margin-left: 10px;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
.dt-buttons button {
|
.dt-buttons button {
|
||||||
@ -148,6 +148,15 @@
|
|||||||
.col-md-7 {
|
.col-md-7 {
|
||||||
width: 80%;
|
width: 80%;
|
||||||
}
|
}
|
||||||
|
.col-sl-12 {
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.col-sl-4 {
|
||||||
|
width: 33%;
|
||||||
|
margin: 10px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes load {
|
@keyframes load {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user