[Fusionforge-commits] r7616 - in trunk/gforge/www: include top

Roland Mas lolando at libremir.placard.fr.eu.org
Wed May 6 12:17:18 CEST 2009


Author: lolando
Date: 2009-05-06 12:17:17 +0200 (Wed, 06 May 2009)
New Revision: 7616

Modified:
   trunk/gforge/www/include/features_boxes.php
   trunk/gforge/www/include/project_home.php
   trunk/gforge/www/top/mostactive.php
Log:
Display activity rankings rather than a confusing activity percentile

Modified: trunk/gforge/www/include/features_boxes.php
===================================================================
--- trunk/gforge/www/include/features_boxes.php	2009-05-06 08:58:23 UTC (rev 7615)
+++ trunk/gforge/www/include/features_boxes.php	2009-05-06 10:17:17 UTC (rev 7616)
@@ -199,7 +199,7 @@
 	} else {
 		$return='';
 		while ($row=db_fetch_array($result)) {
-			$return .= '<strong>('.number_format(substr($row['percentile'],0,5),1).'%)</strong> '
+			$return .= '<strong>(#'.number_format(substr($row['ranking'],0,5),1).')</strong> '
 				.util_make_link_g ($row['unix_group_name'],$row['group_id'],$row['group_name'])
 				.'<br />';
 		}

Modified: trunk/gforge/www/include/project_home.php
===================================================================
--- trunk/gforge/www/include/project_home.php	2009-05-06 08:58:23 UTC (rev 7615)
+++ trunk/gforge/www/include/project_home.php	2009-05-06 10:17:17 UTC (rev 7616)
@@ -83,12 +83,12 @@
 // Get the activity percentile
 // CB hide stats if desired
 if ($project->usesStats()) {
-	$actv = db_query("SELECT percentile FROM project_weekly_metric WHERE group_id='$group_id'");
-	$actv_res = db_result($actv,0,"percentile");
+	$actv = db_query("SELECT ranking FROM project_weekly_metric WHERE group_id='$group_id'");
+	$actv_res = db_result($actv,0,"ranking");
 	if (!$actv_res) {
 		$actv_res=0;
 	}
-	print '<br />'._('Activity Percentile:&nbsp;'). substr($actv_res, 0, 5). '%';
+	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(_('View list of <a href="%1$s">RSS feeds</a> available for this project.</a>'), util_make_url ('/export/rss_project.php?group_id='.$group_id)). '&nbsp;' . html_image('ic/rss.png',16,16,array('border'=>'0'));
 }

Modified: trunk/gforge/www/top/mostactive.php
===================================================================
--- trunk/gforge/www/top/mostactive.php	2009-05-06 08:58:23 UTC (rev 7615)
+++ trunk/gforge/www/top/mostactive.php	2009-05-06 10:17:17 UTC (rev 7616)
@@ -62,7 +62,7 @@
 	$i++;
 	print '
 	<tr '. $HTML->boxGetAltRowStyle($i) .'>
-		<td>&nbsp;&nbsp;'.$i.'
+		<td>&nbsp;&nbsp;'.$row_top['ranking'].'
 		</td>
 		<td>'.util_make_link_g (strtolower($row_top['unix_group_name']),$row_top['group_id'],$row_top['group_name']).'
 		</td>




More information about the Fusionforge-commits mailing list