From: hickert Date: Wed, 30 Jun 2010 09:30:00 +0000 (+0000) Subject: Updated visual rendering of plugin status X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0316d220d06021fc32cba1bd4828c8ca39be634f;p=gosa.git Updated visual rendering of plugin status git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18882 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/generic/dashBoard/dbPluginStatus/class_dbPluginStatus.inc b/gosa-core/plugins/generic/dashBoard/dbPluginStatus/class_dbPluginStatus.inc index cea0e835f..1ee9f9e42 100644 --- a/gosa-core/plugins/generic/dashBoard/dbPluginStatus/class_dbPluginStatus.inc +++ b/gosa-core/plugins/generic/dashBoard/dbPluginStatus/class_dbPluginStatus.inc @@ -19,11 +19,13 @@ class dbPluginStatus extends plugin $this->disabledPlugins = $this->config->configRegistry->getDisabledPlugins(); // Construct the plugin list. - $this->pluginList= new sortableListing($this->gosaLoginRestriction); + $this->pluginList= new sortableListing(); $this->pluginList->setDeleteable(false); $this->pluginList->setEditable(false); - $this->pluginList->setColspecs(array('*')); + $this->pluginList->setColspecs(array('30px','120px','*','100px')); + $this->pluginList->setHeader(array('?',_("Name"),_("Descriptio"),_("Status"))); $this->pluginList->setWidth("100%"); + $this->pluginList->setDefaultSortColumn(1); $this->pluginList->setHeight("200px"); $this->pluginList->setAcl("rwcdm"); @@ -49,10 +51,14 @@ class dbPluginStatus extends plugin $desc = $plInfo['plDescription']; } + // Build image + $image = image('images/true.png'); + // Detect the plugin status $status = 'OK'; if(isset($this->disabledPlugins[$plugin])){ $status = 'Failure'; + $image = image('images/small_error.png'); // Check if an invalid schema is the reason $reasons = $this->config->configRegistry->getSchemaResults(); @@ -72,7 +78,7 @@ class dbPluginStatus extends plugin // Add entry/line to the list $data[$plugin] = $plInfo; - $lData[$plugin] = array('data' => array($name,$desc, $status)); + $lData[$plugin] = array('data' => array($image,$name,$desc, $status)); } $this->pluginList->setListData($data,$lData); $this->pluginList->update();