#11494 Align text left

This commit is contained in:
miguel angel rasteu 2023-11-23 09:12:49 +01:00
parent b8574cf689
commit 81f938c5ca
2 changed files with 4 additions and 0 deletions

View File

@ -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) {

View File

@ -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'].'%';