From 45316cdd0f6c886d84cebd1583e001533441560f Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Thu, 23 Feb 2017 12:26:48 +0100 Subject: [PATCH] Fixed visual in welcome view. Gitlab: #359 --- pandora_console/general/logon_ok.php | 27 +++++++++++----------- pandora_console/include/styles/pandora.css | 3 +++ 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/pandora_console/general/logon_ok.php b/pandora_console/general/logon_ok.php index d0b64f4c49..5dc04bbcff 100644 --- a/pandora_console/general/logon_ok.php +++ b/pandora_console/general/logon_ok.php @@ -213,16 +213,17 @@ if (!empty($all_data)) { $table->width = '100%'; //Don't specify px $table->data = array (); $table->size = array (); - $table->size[2] = '150px'; - $table->size[3] = '130px'; - $table->size[5] = '200px'; + $table->size[0] = '5%'; + $table->size[1] = '15%'; + $table->size[2] = '15%'; + $table->size[3] = '10%'; + $table->size[4] = '25%'; $table->head = array (); $table->head[0] = __('User'); - $table->head[1] = ''; - $table->head[2] = __('Action'); - $table->head[3] = __('Date'); - $table->head[4] = __('Source IP'); - $table->head[5] = __('Comments'); + $table->head[1] = __('Action'); + $table->head[2] = __('Date'); + $table->head[3] = __('Source IP'); + $table->head[4] = __('Comments'); $table->title = '' . __('This is your last activity in Pandora FMS console') . ''; switch ($config["dbtype"]) { @@ -268,11 +269,11 @@ if (!empty($all_data)) { $data[0] = '' . $session_id_usuario . ''; - $data[1] = ui_print_session_action_icon ($session['accion'], true); - $data[2] = $session['accion']; - $data[3] = ui_print_help_tip($session['fecha'], true) . human_time_comparation($session['utimestamp'], 'tiny'); - $data[4] = $session_ip_origen; - $data[5] = io_safe_output(io_safe_output($session['descripcion'])); + $data[1] = ui_print_session_action_icon ($session['accion'], true) . ' ' . $session['accion']; + $data[2] = ui_print_help_tip($session['fecha'], true) . human_time_comparation($session['utimestamp'], 'tiny'); + $data[3] = $session_ip_origen; + $description = str_replace(array(',', ', '), ', ', $session['descripcion']); + $data[4] = '
' . io_safe_output($description) . '
'; array_push ($table->data, $data); } diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css index 3e2cca8cfb..211be7d568 100644 --- a/pandora_console/include/styles/pandora.css +++ b/pandora_console/include/styles/pandora.css @@ -207,6 +207,9 @@ div#activity{ padding-top: 0px; padding-bottom: 18px; } +div#activity table td > img { + vertical-align: middle; +} div#noa { float: right; padding-right: 50px;