From 52502240425d47e3e2808ac643d76990f84d3e46 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Mon, 4 Nov 2013 15:16:37 +0000 Subject: [PATCH] 2013-11-04 Sergio Martin * operation/tree.php: Truncate the name of agents and modules in tree view to avoid ugly view for incident #306 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9002 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ pandora_console/operation/tree.php | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 1a7e51e99e..cf899e80b3 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2013-11-04 Sergio Martin + + * operation/tree.php: Truncate the name of agents + and modules in tree view to avoid ugly view for + incident #306 + 2013-11-04 Sergio Martin * godmode/massive/massive_edit_modules.php: Added diff --git a/pandora_console/operation/tree.php b/pandora_console/operation/tree.php index b2c4e384d8..c5b3c543be 100644 --- a/pandora_console/operation/tree.php +++ b/pandora_console/operation/tree.php @@ -247,7 +247,7 @@ if (is_ajax ()) href='javascript: loadTable(\"agent_" . $type . "\"," . $row["id_agente"] . ", " . $less . ", \"" . $id . "\", \"" . $row['server_name'] . "\")'>"; echo " "; - echo $row["nombre"]; + echo ui_print_truncate_text($row["nombre"], 40, true); echo " (" . reporting_tiny_stats($row, true) . ")"; @@ -451,7 +451,7 @@ if (is_ajax ()) } echo ""; - echo io_safe_output($row['nombre']); + echo ui_print_truncate_text(io_safe_output($row['nombre']), 40, true); echo ""; if ($row['quiet']) { echo " ";