[Fusionforge-commits] r14719 - in trunk/src/common: include widget

Alain Peyrat aljeux at fusionforge.org
Wed Oct 26 11:25:42 CEST 2011


Author: aljeux
Date: 2011-10-26 11:25:41 +0200 (Wed, 26 Oct 2011)
New Revision: 14719

Modified:
   trunk/src/common/include/Navigation.class.php
   trunk/src/common/include/SCMPlugin.class.php
   trunk/src/common/include/utils.php
   trunk/src/common/widget/Widget.class.php
   trunk/src/common/widget/WidgetLayoutManager.class.php
Log:
Move the link to the scm browser on the left (was not visible when lots of stats)

Modified: trunk/src/common/include/Navigation.class.php
===================================================================
--- trunk/src/common/include/Navigation.class.php	2011-10-26 08:26:28 UTC (rev 14718)
+++ trunk/src/common/include/Navigation.class.php	2011-10-26 09:25:41 UTC (rev 14719)
@@ -232,7 +232,7 @@
 		$menu['tooltips'][] = _('Main Page');
 
 		// My Page
-		$menu['titles'][] = _('My Page');
+                $menu['titles'][] = _('My Page');
 		$menu['urls'][] = util_make_uri('/my/');
 		$menu['tooltips'][] = _('Your Page, widgets selected by you to follow your items.');
 		if (strstr($request_uri, util_make_uri('/my/'))
@@ -254,7 +254,7 @@
 		}
 
 		if (forge_get_config('use_snippet')) {
-			$menu['titles'][] = _('Code Snippets');
+			$menu['titles'][] = _('Code Snippets');
 			$menu['urls'][] = util_make_uri('/snippet/');
 			$menu['tooltips'][] = _('Tooling library. Small coding tips.');
 			if (strstr($request_uri, util_make_uri('/snippet/'))) {
@@ -263,7 +263,7 @@
 		}
 
 		if (forge_get_config('use_people')) {
-			$menu['titles'][] = _('Project Openings');
+			$menu['titles'][] = _('Project Openings');
 			$menu['urls'][] = util_make_uri('/people/');
 			$menu['tooltips'][] = _('Hiring Market Place.');
 			if (strstr($request_uri, util_make_uri('/people/'))) {

Modified: trunk/src/common/include/SCMPlugin.class.php
===================================================================
--- trunk/src/common/include/SCMPlugin.class.php	2011-10-26 08:26:28 UTC (rev 14718)
+++ trunk/src/common/include/SCMPlugin.class.php	2011-10-26 09:25:41 UTC (rev 14719)
@@ -194,7 +194,7 @@
 		if ($project->usesPlugin ($this->name)) {
 
 			// Table for summary info
-			print '<table width="100%"><tr valign="top"><td width="65%">'."\n" ;
+			print '<table class="fullwidth"><tr valign="top"><td style="width:65%">'."\n" ;
 			print $this->getBlurb ()."\n" ;
 
 			// Instructions for anonymous access
@@ -205,18 +205,21 @@
 			// Instructions for developer access
 			print $this->getInstructionsForRW ($project) ;
 
+			if ($this->browserDisplayable ($project)) {
+				echo $this->getBrowserLinkBlock ($project) ;
+			}
+
 			// Snapshot
 			if ($this->browserDisplayable ($project)) {
 				print $this->getSnapshotPara ($project) ;
 			}
-			print '</td>'."\n".'<td width="35%" valign="top">'."\n" ;
+			print '</td>'."\n".'<td style="width:35%" class="top">'."\n" ;
 
 			// Browsing
 			echo $HTML->boxTop(_('Repository History'));
 			echo _('Data about current and past states of the repository') ;
 			if ($this->browserDisplayable($project)) {
 				echo $this->getStatsBlock($project);
-				echo $this->getBrowserLinkBlock($project);
 			}
 
 			echo $HTML->boxBottom();

Modified: trunk/src/common/include/utils.php
===================================================================
--- trunk/src/common/include/utils.php	2011-10-26 08:26:28 UTC (rev 14718)
+++ trunk/src/common/include/utils.php	2011-10-26 09:25:41 UTC (rev 14719)
@@ -561,7 +561,7 @@
 function show_priority_colors_key() {
 	echo '<p /><strong> '._('Priority Colors').':</strong><br />
 
-		<table border="0"><tr>';
+		<table><tr>';
 
 	for ($i=1; $i<6; $i++) {
 		echo '
@@ -752,7 +752,7 @@
 		$rows  =  db_numrows($result);
 		$cols  =  db_numfields($result);
 
-		echo '<table border="0" width="100%">';
+		echo '<table width="100%">';
 
 		/*  Create  the  headers  */
 		$headersCellData = array();

Modified: trunk/src/common/widget/Widget.class.php
===================================================================
--- trunk/src/common/widget/Widget.class.php	2011-10-26 08:26:28 UTC (rev 14718)
+++ trunk/src/common/widget/Widget.class.php	2011-10-26 09:25:41 UTC (rev 14719)
@@ -62,7 +62,7 @@
 * "Codendi" Layout Widget
 *
 */
-        
+
 /* abstract */ class Widget {
 
 	var $content_id;

Modified: trunk/src/common/widget/WidgetLayoutManager.class.php
===================================================================
--- trunk/src/common/widget/WidgetLayoutManager.class.php	2011-10-26 08:26:28 UTC (rev 14718)
+++ trunk/src/common/widget/WidgetLayoutManager.class.php	2011-10-26 09:25:41 UTC (rev 14719)
@@ -294,7 +294,7 @@
 			$sql = 'SELECT * FROM layouts_rows WHERE layout_id = $1 ORDER BY rank';
 			$req_rows = db_query_params($sql,array($layout_id));
 			while ($data = db_fetch_array($req_rows)) {
-				echo '<table class="layout-manager-row" cellspacing="5" cellpadding="2" border="0">
+				echo '<table class="layout-manager-row" cellspacing="5" cellpadding="2">
 					<tr>
 					<td class="layout-manager-column-add">+</td>';
 				$sql = 'SELECT * FROM layouts_rows_columns WHERE layout_row_id = $1';




More information about the Fusionforge-commits mailing list