[Fusionforge-commits] r8613 - trunk/gforge/www/include

Alexandre Neymann neymanna at libremir.placard.fr.eu.org
Tue Dec 22 15:55:22 CET 2009


Author: neymanna
Date: 2009-12-22 15:55:22 +0100 (Tue, 22 Dec 2009)
New Revision: 8613

Modified:
   trunk/gforge/www/include/project_home.php
Log:
fix sprintf, and add conditionnal report

Modified: trunk/gforge/www/include/project_home.php
===================================================================
--- trunk/gforge/www/include/project_home.php	2009-12-22 14:28:05 UTC (rev 8612)
+++ trunk/gforge/www/include/project_home.php	2009-12-22 14:55:22 UTC (rev 8613)
@@ -91,8 +91,11 @@
 	if (!$actv_res) {
 		$actv_res=0;
 	}
-	print '<br />'.sprintf (_('Activity Ranking: %d'). $actv_res) ;
-	print '<br />'.sprintf(_('View project <a href="%1$s" >Statistics</a> or <a href="%2$s">Activity</a>'), util_make_url ('/project/stats/?group_id='.$group_id),util_make_url ('/project/report/?group_id='.$group_id));
+	print '<br />'.sprintf (_('Activity Ranking: %d'), $actv_res) ;
+	print '<br />'.sprintf(_('View project <a href="%1$s" >Statistics</a>'),util_make_url ('/project/stats/?group_id='.$group_id));
+	if ( ($project->usesTracker() && $GLOBALS['sys_use_tracker']) || ($project->usesPm() && $GLOBALS['sys_use_pm']) ) {
+		print sprintf(_(' or <a href="%1$s">Activity</a>'),util_make_url ('/project/report/?group_id='.$group_id));
+	}
 	print '<br />'.sprintf(_('View list of <a href="%1$s">RSS feeds</a> available for this project.'), util_make_url ('/export/rss_project.php?group_id='.$group_id)). '&nbsp;' . html_image('ic/rss.png',16,16,array('border'=>'0'));
 }
 




More information about the Fusionforge-commits mailing list