mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 07:44:35 +02:00
#11494 Align text left
This commit is contained in:
parent
b8574cf689
commit
81f938c5ca
@ -454,6 +454,7 @@ class Widget
|
|||||||
|
|
||||||
case 'service_level':
|
case 'service_level':
|
||||||
$className .= '\ServiceLevelWidget';
|
$className .= '\ServiceLevelWidget';
|
||||||
|
break;
|
||||||
|
|
||||||
case 'security_hardening':
|
case 'security_hardening':
|
||||||
if (\enterprise_installed() === false) {
|
if (\enterprise_installed() === false) {
|
||||||
|
@ -537,14 +537,17 @@ class ServiceLevelWidget extends Widget
|
|||||||
$table->head[5] = __('Warn. Events');
|
$table->head[5] = __('Warn. Events');
|
||||||
$table->head[6] = __('Last change');
|
$table->head[6] = __('Last change');
|
||||||
$table->data = [];
|
$table->data = [];
|
||||||
|
$table->cellstyle = [];
|
||||||
$row = 0;
|
$row = 0;
|
||||||
foreach ($visualData as $agent_id => $data) {
|
foreach ($visualData as $agent_id => $data) {
|
||||||
foreach ($data['modules'] as $module_name => $module_data) {
|
foreach ($data['modules'] as $module_name => $module_data) {
|
||||||
if (isset($module_data) === true) {
|
if (isset($module_data) === true) {
|
||||||
if ($show_agents === 'on') {
|
if ($show_agents === 'on') {
|
||||||
$table->data[$row][0] = $module_data['agent_alias'].' / '.$module_data['module_name'];
|
$table->data[$row][0] = $module_data['agent_alias'].' / '.$module_data['module_name'];
|
||||||
|
$table->cellstyle[$row][0] = 'text-align:left';
|
||||||
} else {
|
} else {
|
||||||
$table->data[$row][0] = $module_data['module_name'];
|
$table->data[$row][0] = $module_data['module_name'];
|
||||||
|
$table->cellstyle[$row][0] = 'text-align:left';
|
||||||
}
|
}
|
||||||
|
|
||||||
$table->data[$row][1] = $module_data['availability'].'%';
|
$table->data[$row][1] = $module_data['availability'].'%';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user