From: cajus Date: Wed, 9 Apr 2008 12:16:29 +0000 (+0000) Subject: Updated gotomasses X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fc1b734bad55a665f539c4ff5ed1bf3dc5a9ac57;p=gosa.git Updated gotomasses -Display hostname instead of MAC address. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10299 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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;'");