From 5489185c8de78fa688806d6f021a36458b9e211d Mon Sep 17 00:00:00 2001
From: mdtrooper <tres.14159@gmail.com>
Date: Tue, 11 Mar 2014 11:31:49 +0000
Subject: [PATCH] 2014-03-11  Miguel de Dios <miguel.dedios@artica.es>

	* operation/agentes/estado_monitores.php: fixed the length of module
	name in the agent view.

	Incident: #608




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9552 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
---
 pandora_console/ChangeLog                      |  7 +++++++
 .../operation/agentes/estado_monitores.php     | 18 ++++++++++++++----
 2 files changed, 21 insertions(+), 4 deletions(-)

diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog
index b053271aa4..65b1703582 100644
--- a/pandora_console/ChangeLog
+++ b/pandora_console/ChangeLog
@@ -1,3 +1,10 @@
+2014-03-11  Miguel de Dios <miguel.dedios@artica.es>
+	
+	* operation/agentes/estado_monitores.php: fixed the length of module
+	name in the agent view.
+	
+	Incident: #608
+
 2014-03-10  Miguel de Dios <miguel.dedios@artica.es>
 	
 	* include/functions_visual_map.php: fixed images of static graphs.
diff --git a/pandora_console/operation/agentes/estado_monitores.php b/pandora_console/operation/agentes/estado_monitores.php
index 0348777b22..313685f0ac 100644
--- a/pandora_console/operation/agentes/estado_monitores.php
+++ b/pandora_console/operation/agentes/estado_monitores.php
@@ -401,12 +401,16 @@ foreach ($modules as $module) {
 	if (check_acl ($config['id_user'], $id_grupo, "AW")) 
 		$data[2] .= '<a href="index.php?sec=gagente&amp;sec2=godmode/agentes/configurar_agente&amp;id_agente='.$id_agente.'&amp;tab=module&amp;id_agent_module='.$module["id_agente_modulo"].'&amp;edit_module='.$module["id_modulo"].'">' . html_print_image("images/config.png", true, array("alt" => '0', "border" => "", "title" => __('Edit'))) . '</a>';
 	
+	
+	
+	
 	$data[3] = "";
 	if ($module['quiet']) {
-		$data[3] .= html_print_image("images/dot_green.disabled.png", true, array("border" => '0', "title" => __('Quiet'), "alt" => ""))
+		$data[3] .= html_print_image("images/dot_green.disabled.png", true,
+			array("border" => '0', "title" => __('Quiet'), "alt" => ""))
 			. "&nbsp;";
 	}
-	$data[3] .= ui_print_string_substr ($module["nombre"], 30, true);
+	$data[3] .= ui_print_truncate_text($module["nombre"], 'module_medium');
 	if (!empty($module["extended_info"])) {
 		if ($module["extended_info"] != "") {
 			$data[3] .= ui_print_help_tip ($module["extended_info"], true, '/images/comments.png');
@@ -418,6 +422,10 @@ foreach ($modules as $module) {
 		$data[3] .= ' <a class="tag_details" href="ajax.php?page=operation/agentes/estado_monitores&get_tag_tooltip=1&id_agente_modulo='.$module['id_agente_modulo'].'">' .
 		html_print_image("images/tag_red.png", true, array("id" => 'tag-details-'.$module['id_agente_modulo'], "class" => "img_help")) . '</a> ';
 	}
+	
+	
+	
+	
 	$data[4] = ui_print_string_substr ($module["descripcion"], 60, true, 8);
 	
 	
@@ -593,10 +601,12 @@ echo "<h4 style='padding-top:0px !important;'>" .
 print_form_filter_monitors($id_agente, $status_filter_monitor, $status_text_monitor);
 if (empty ($table->data)) {
 	if ($filter_monitors) {
-		echo '<div class="nf">' . __('Any monitors aren\'t with this filter.') . '</div>';
+		echo '<div class="nf">' .
+			__('Any monitors aren\'t with this filter.') . '</div>';
 	}
 	else {
-		echo '<div class="nf">' . __('This agent doesn\'t have any active monitors.') . '</div>';
+		echo '<div class="nf">' .
+			__('This agent doesn\'t have any active monitors.') . '</div>';
 	}
 }
 else {