From fc1b734bad55a665f539c4ff5ed1bf3dc5a9ac57 Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 9 Apr 2008 12:16:29 +0000 Subject: [PATCH] Updated gotomasses -Display hostname instead of MAC address. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10299 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/goto/addons/goto/class_gotomasses.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/goto/addons/goto/class_gotomasses.inc b/gosa-plugins/goto/addons/goto/class_gotomasses.inc index c26d57f30..c8ee0da14 100644 --- a/gosa-plugins/goto/addons/goto/class_gotomasses.inc +++ b/gosa-plugins/goto/addons/goto/class_gotomasses.inc @@ -406,8 +406,14 @@ class gotomasses extends plugin class='center' alt='"._("Remove")."'>"; } + /* Create entry display name and tooltip */ $color = ""; $display = $task['MACADDRESS']; + $tooltip = ""; + if(isset($task['TARGETTAG'])){ + $display = $task['TARGETTAG']; + $tooltip = " title='".$task['MACADDRESS']."' "; + } $display2= $task['HEADERTAG']; /* Check if this event exists as Daemon class @@ -463,7 +469,7 @@ class gotomasses extends plugin $field0 = array("string" => "" , "attach" => "style='width:20px;".$color."'"); $field1 = array("string" => $display, - "attach" => "style='".$color."'"); + "attach" => $tooltip."style='".$color."'"); $field1a= array("string" => $display2, "attach" => "style='".$color.";width:120px;'"); $field2 = array("string" => date("d.m.Y H:i:s",strtotime($task['TIMESTAMP'])),"attach" => "style='".$color.";width:100px;'"); -- 2.30.2