diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 850f386313..37eed1907f 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-10-15 Sergio Martin + + * godmode/alerts/alert_list.list.php: Improved the size of the + alert view columns + 2010-10-15 Sergio Martin * godmode/alerts/alert_list.list.php diff --git a/pandora_console/godmode/alerts/alert_list.list.php b/pandora_console/godmode/alerts/alert_list.list.php index a346ce30ee..96cece7f44 100644 --- a/pandora_console/godmode/alerts/alert_list.list.php +++ b/pandora_console/godmode/alerts/alert_list.list.php @@ -288,26 +288,28 @@ if (! $id_agente) { $table->head[2] = __('Agent') . '
' . '' . ''; - $table->size[0] = '8%'; - $table->size[1] = '8%'; + $table->size[0] = '6%'; + $table->size[1] = '6%'; $table->size[2] = '20%'; $table->size[3] = '20%'; if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) { $table->size[4] = '15%'; } - $table->size[5] = '8%'; - $table->size[6] = '20%'; + $table->size[5] = '6%'; + $table->size[6] = '15%'; } else { /* Different sizes or the layout screws up */ - $table->size[0] = '8%'; - $table->size[1] = '8%'; - $table->size[2] = '20%'; - $table->size[3] = '20%'; + $table->size[0] = '6%'; + $table->size[1] = '6%'; + $table->size[3] = '25%'; if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) { - $table->size[4] = '20px'; + $table->size[4] = '25%'; } - $table->size[5] = '8%'; + $table->size[5] = '6%'; + $table->size[6] = '25%'; + $table->size[7] = '10%'; + } $table->head[3] = __('Module') . '
' . @@ -390,13 +392,13 @@ foreach ($simple_alerts as $alert) { $data[2] .= ''; $data[2] .= ''; } - $data[3] = get_agentmodule_name ($alert['id_agent_module']); + $data[3] = printTruncateText(get_agentmodule_name ($alert['id_agent_module']), 25, false); $data[4] = ' '; $data[4] .= ""; - $data[4] .= get_alert_template_name ($alert['id_alert_template']); + $data[4] .= printTruncateText(get_alert_template_name ($alert['id_alert_template']), 15, false); $data[4] .= ""; if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) { @@ -430,7 +432,7 @@ foreach ($simple_alerts as $alert) { $data[6] .= ''; else $data[6] .= ''; - $data[6] .= $action['name']; + $data[6] .= printTruncateText($action['name'], 15, false); $data[6] .= ' ('; if ($action['fires_min'] == $action['fires_max']) { if ($action['fires_min'] == 0)