From: hickert Date: Fri, 29 Feb 2008 10:13:39 +0000 (+0000) Subject: Gotomasses X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=777d503e36d5a023792c15e03ccef140606154ff;p=gosa.git Gotomasses -Added some status icons git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9206 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/addons/gotomasses/class_gotomasses.inc b/gosa-plugins/goto/addons/gotomasses/class_gotomasses.inc index 3db5527c9..fe95e9fe2 100644 --- a/gosa-plugins/goto/addons/gotomasses/class_gotomasses.inc +++ b/gosa-plugins/goto/addons/gotomasses/class_gotomasses.inc @@ -361,12 +361,24 @@ class gotomasses extends plugin if(isset($this->events['BY_QUEUED_ACTION'][$task['HEADERTAG']]['s_Menu_Name'])){ $event_type = $this->events['BY_QUEUED_ACTION'][$task['HEADERTAG']]; $display2= $event_type['s_Menu_Name']; + + if(strlen($display2) > 20){ + $display2 = substr($display2,0,18)."..."; + } + if(isset($event_type['ListImage']) && !empty($event_type['ListImage'])){ $display2 = $event_type['ListImage']." ".$display2; } } $status = $task['STATUS']; + + if($status == "waiting"){ + $status = " "._("Waiting"); + } + if($status == "error"){ + $status = " "._("Error"); + } /* Special handling for all entries that have STATUS == "processing" && PROGRESS == NUMERIC