#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':
$className .= '\ServiceLevelWidget';
break;
case 'security_hardening':
if (\enterprise_installed() === false) {

View File

@ -537,14 +537,17 @@ class ServiceLevelWidget extends Widget
$table->head[5] = __('Warn. Events');
$table->head[6] = __('Last change');
$table->data = [];
$table->cellstyle = [];
$row = 0;
foreach ($visualData as $agent_id => $data) {
foreach ($data['modules'] as $module_name => $module_data) {
if (isset($module_data) === true) {
if ($show_agents === 'on') {
$table->data[$row][0] = $module_data['agent_alias'].' / '.$module_data['module_name'];
$table->cellstyle[$row][0] = 'text-align:left';
} else {
$table->data[$row][0] = $module_data['module_name'];
$table->cellstyle[$row][0] = 'text-align:left';
}
$table->data[$row][1] = $module_data['availability'].'%';