From ad0e922ecea44c3afa18f0adf95789c4f8497eec Mon Sep 17 00:00:00 2001 From: Jonathan Date: Tue, 18 Apr 2023 12:56:18 +0200 Subject: [PATCH] #10966 change style widget info groups --- .../lib/Dashboard/Widgets/groups_status.php | 34 ++++++++++++++----- pandora_console/include/styles/dashboards.css | 3 +- 2 files changed, 27 insertions(+), 10 deletions(-) diff --git a/pandora_console/include/lib/Dashboard/Widgets/groups_status.php b/pandora_console/include/lib/Dashboard/Widgets/groups_status.php index bf164fe37f..524ff5ad26 100755 --- a/pandora_console/include/lib/Dashboard/Widgets/groups_status.php +++ b/pandora_console/include/lib/Dashboard/Widgets/groups_status.php @@ -362,19 +362,22 @@ class GroupsStatusWidget extends Widget // Agent Critical. $table->data[1][0] = $this->getCellCounter( $stats['agent_critical'], - '#e63c52' + '', + 'bg_ff5' ); // Agent Warning. $table->data[2][0] = $this->getCellCounter( $stats['agent_warning'], - '#f3b200' + '', + 'bg_ffd' ); // Agent OK. $table->data[3][0] = $this->getCellCounter( $stats['agent_ok'], - '#82b92e' + '', + 'bg_82B92E' ); // Agent Unknown. @@ -436,19 +439,22 @@ class GroupsStatusWidget extends Widget // Modules Critical. $table->data[1][0] = $this->getCellCounter( $stats['monitor_critical'], - '#e63c52' + '', + 'bg_ff5' ); // Modules Warning. $table->data[2][0] = $this->getCellCounter( $stats['monitor_warning'], - '#f3b200' + '', + 'bg_ffd' ); // Modules OK. $table->data[3][0] = $this->getCellCounter( $stats['monitor_ok'], - '#82b92e' + '', + 'bg_82B92E' ); // Modules Unknown. @@ -490,10 +496,20 @@ class GroupsStatusWidget extends Widget * * @return string */ - protected function getCellCounter(?int $count, string $color):string + protected function getCellCounter(?int $count, string $color='', string $div_class=''):string { - $output = '
'; + $output = '
span { padding-left: 10px; } -table.group_modules_status_box tr td div { +table.group_modules_status_box tr td div, +table.widget_groups_status tr td div { background-color: #82b92e; width: 90%; padding: 3px;