[evolvis-commits] r17517: provide tooltips from all plugins as well

mirabilos at evolvis.org mirabilos at evolvis.org
Fri Sep 2 14:37:49 CEST 2011


Author: mirabilos
Date: 2011-09-02 14:37:49 +0200 (Fri, 02 Sep 2011)
New Revision: 17517

Modified:
   branches/ev48fixes/docs/README.Plugins
   branches/ev48fixes/plugins/jenkins/common/JenkinsPlugin.class.php
   branches/ev48fixes/plugins/mediawiki/common/MediaWikiPlugin.class.php
   branches/ev48fixes/plugins/scmgit/common/GitPlugin.class.php
Log:
provide tooltips from all plugins as well


Modified: branches/ev48fixes/docs/README.Plugins
===================================================================
--- branches/ev48fixes/docs/README.Plugins	2011-09-02 12:29:37 UTC (rev 17516)
+++ branches/ev48fixes/docs/README.Plugins	2011-09-02 12:37:49 UTC (rev 17517)
@@ -277,6 +277,8 @@
   Hook Name  : groupmenu
   Parameters : DIRS - A reference to the array of tab URLs
                TITLES - A reference to the array of tab titles
+               TOOLTIPS - A reference to the array of tooltips
+                          (not available in all themes)
                toptab - A reference to a string containing the name of
                         the GForge tab menu in use (eg. admin, tracker)
                selected - A reference to an array index of the tabs.
@@ -290,6 +292,8 @@
   Hook Name  : groupmenu_scm
   Parameters : DIRS - A reference to the array of tab URLs
                TITLES - A reference to the array of tab titles
+               TOOLTIPS - A reference to the array of tooltips
+                          (not available in all themes)
                toptab - A reference to a string containing the name of
                         the GForge tab menu in use (eg. admin, tracker)
                selected - A reference to an array index of the tabs.
@@ -420,6 +424,8 @@
   hook Name  : outermenu
   Parameters : DIRS - A reference to the array of tab URLs
                TITLES - A reference to the array of tab titles
+               TOOLTIPS - A reference to the array of tooltips
+                          (not available in all themes)
   Location   : www/include/Layout.class.php
   Description: Used to provide a plugin specific tab in main menu.
 

Modified: branches/ev48fixes/plugins/jenkins/common/JenkinsPlugin.class.php
===================================================================
--- branches/ev48fixes/plugins/jenkins/common/JenkinsPlugin.class.php	2011-09-02 12:29:37 UTC (rev 17516)
+++ branches/ev48fixes/plugins/jenkins/common/JenkinsPlugin.class.php	2011-09-02 12:37:49 UTC (rev 17517)
@@ -342,8 +342,14 @@
 			if (!$project->isProject()) {
 				return;
 			}
+			if (!isset($params['TOOLTIPS'])) {
+				$tooltips_array = array();
+				$params['TOOLTIPS'] = &$tooltips_array;
+			}
 			if ($project->usesPlugin($this->name)) {
 				$params['TITLES'][] = $this->text;
+				$params['TOOLTIPS'][count($params['TITLES']) - 1] =
+				    _('Interface to Continuous Integration with the Hudson/Jenkins software');
 				$params['DIRS'][] = '/plugins/jenkins/index.php?group_id=' . $group_id;
 			}
 			if ($params['toptab'] == $this->name) {

Modified: branches/ev48fixes/plugins/mediawiki/common/MediaWikiPlugin.class.php
===================================================================
--- branches/ev48fixes/plugins/mediawiki/common/MediaWikiPlugin.class.php	2011-09-02 12:29:37 UTC (rev 17516)
+++ branches/ev48fixes/plugins/mediawiki/common/MediaWikiPlugin.class.php	2011-09-02 12:37:49 UTC (rev 17517)
@@ -56,8 +56,14 @@
 			if (!$project->isProject()) {
 				return;
 			}
+			if (!isset($params['TOOLTIPS'])) {
+				$tooltips_array = array();
+				$params['TOOLTIPS'] = &$tooltips_array;
+			}
 			if ( $project->usesPlugin ( $this->name ) ) {
-				$params['TITLES'][]=$this->text;
+				$params['TITLES'][] = _('Wiki');
+				$params['TOOLTIPS'][count($params['TITLES']) - 1] =
+				    _('Project Wiki using the MediaWiki software embedded into the Forge');
 				if ($GLOBALS['sys_use_mwframe']){
 					$params['DIRS'][]='/plugins/mediawiki/frame.php?group_id='.$project->getID() ;
 				} else {

Modified: branches/ev48fixes/plugins/scmgit/common/GitPlugin.class.php
===================================================================
--- branches/ev48fixes/plugins/scmgit/common/GitPlugin.class.php	2011-09-02 12:29:37 UTC (rev 17516)
+++ branches/ev48fixes/plugins/scmgit/common/GitPlugin.class.php	2011-09-02 12:37:49 UTC (rev 17517)
@@ -50,8 +50,14 @@
 	function CallHook($hookname, $params) {
 		switch ($hookname) {
 		case 'outermenu':
+			if (!isset($params['TOOLTIPS'])) {
+				$tooltips_array = array();
+				$params['TOOLTIPS'] = &$tooltips_array;
+			}
 			$params['TITLES'][] = _('gitweb') /*$this->text*/;
 			$params['DIRS'][] = '/plugins/scmgit/cgi-bin/gitweb.cgi';
+			$params['TOOLTIPS'][count($params['TITLES']) - 1] =
+			    _('Display a list of all subrepositories of all projects using the git SCM');
 			break;
 		default:
 			return parent::CallHook($hookname, $params);



More information about the evolvis-commits mailing list