[Fusionforge-commits] r7797 - branches/Branch_4_8/gforge/www/include

Roland Mas lolando at libremir.placard.fr.eu.org
Wed Jun 10 21:27:28 CEST 2009


Author: lolando
Date: 2009-06-10 21:27:28 +0200 (Wed, 10 Jun 2009)
New Revision: 7797

Modified:
   branches/Branch_4_8/gforge/www/include/features_boxes.php
   branches/Branch_4_8/gforge/www/include/project_home.php
Log:
Enhanced display of numbers on homepage and on project summary pages

Modified: branches/Branch_4_8/gforge/www/include/features_boxes.php
===================================================================
--- branches/Branch_4_8/gforge/www/include/features_boxes.php	2009-06-10 19:14:21 UTC (rev 7796)
+++ branches/Branch_4_8/gforge/www/include/features_boxes.php	2009-06-10 19:27:28 UTC (rev 7797)
@@ -69,7 +69,7 @@
 	$return = "";
 	while ($row_topdown = db_fetch_array($res_topdown)) {
 		if ($row_topdown['downloads'] > 0)
-			$return .= '(' . number_format($row_topdown['downloads']) . ')'
+			$return .= '<strong>(' . number_format($row_topdown['downloads']) . ')</strong> '
 			. util_make_link_g ($row_topdown['unix_group_name'],$row_topdown['group_id'],$row_topdown['group_name'])
 			. "<br />\n";
 	}

Modified: branches/Branch_4_8/gforge/www/include/project_home.php
===================================================================
--- branches/Branch_4_8/gforge/www/include/project_home.php	2009-06-10 19:14:21 UTC (rev 7796)
+++ branches/Branch_4_8/gforge/www/include/project_home.php	2009-06-10 19:27:28 UTC (rev 7797)
@@ -293,12 +293,16 @@
 	if (!$result || $rows < 1) {
 		echo '<br /><em>'._('There are no public trackers available').'</em>';
 	} else {
+		echo '<ul>' ;
+		
 		for ($j = 0; $j < $rows; $j++) {
-			echo '<p />
-		&nbsp;-&nbsp;'.util_make_link ('/tracker/?atid='. db_result($result, $j, 'group_artifact_id') . '&amp;group_id='.$group_id.'&amp;func=browse',db_result($result, $j, 'name'))
-		.sprintf(ngettext(' (<strong>%1$s</strong> open / <strong>%2$s</strong> total)', ' (<strong>%1$s</strong> open / <strong>%2$s</strong> total)', (int) db_result($result, $j, 'open_count')), (int) db_result($result, $j, 'open_count'), (int) db_result($result, $j, 'count')) .'<br />'.
-		db_result($result, $j, 'description');
+			echo '<li>' ;
+			print util_make_link ('/tracker/?atid='. db_result($result, $j, 'group_artifact_id') . '&amp;group_id='.$group_id.'&amp;func=browse',db_result($result, $j, 'name')) . ' ' ;
+		.sprintf(ngettext('(<strong>%1$s</strong> open / <strong>%2$s</strong> total)', '(<strong>%1$s</strong> open / <strong>%2$s</strong> total)', (int) db_result($result, $j, 'open_count')), (int) db_result($result, $j, 'open_count'), (int) db_result($result, $j, 'count')) .'<br />'.
+			 db_result($result, $j, 'description');
+			echo '</li>' ;
 		}
+		echo '</ul>' ;
 	}
 }
 
@@ -348,11 +352,13 @@
 	if (!$result || $rows < 1) {
 		echo '<br /><em>'._('There are no public subprojects available').'</em>';
 	} else {
+		echo '<ul>' ;
 		for ($j = 0; $j < $rows; $j++) {
-			echo '
-			<br /> &nbsp; - '.util_make_link ('/pm/task.php?group_project_id='.db_result($result, $j, 'group_project_id').'&amp;group_id='.$group_id.'&amp;func=browse',db_result($result, $j, 'project_name'));
+			echo '<li>' ;
+			print util_make_link ('/pm/task.php?group_project_id='.db_result($result, $j, 'group_project_id').'&amp;group_id='.$group_id.'&amp;func=browse',db_result($result, $j, 'project_name'));
+			echo '</li>' ;
 		}
-
+		echo '</ul>' ;
 	}
 }
 




More information about the Fusionforge-commits mailing list