[Fusionforge-commits] r7362 - trunk/gforge/www/my
Roland Mas
lolando at libremir.placard.fr.eu.org
Mon Apr 6 22:55:16 CEST 2009
Author: lolando
Date: 2009-04-06 22:55:16 +0200 (Mon, 06 Apr 2009)
New Revision: 7362
Modified:
trunk/gforge/www/my/index.php
Log:
Bugfix for monitored trackers on user's personal page
Modified: trunk/gforge/www/my/index.php
===================================================================
--- trunk/gforge/www/my/index.php 2009-04-06 20:50:34 UTC (rev 7361)
+++ trunk/gforge/www/my/index.php 2009-04-06 20:55:16 UTC (rev 7362)
@@ -255,26 +255,27 @@
}
$at_arr =& $atf->getArtifactTypes();
-
-
- foreach($at_arr as $at) {
- if (!$at->isMonitoring()) {
- continue ;
+
+ if (count ($at_arr) >= 1) {
+ foreach($at_arr as $at) {
+ if (!$at->isMonitoring()) {
+ continue ;
+ }
+ $at_found++ ;
+ if ($group->getID() != $last_group) {
+ echo '
+ <tr '. $HTML->boxGetAltRowStyle(1) .'><td colspan="2">'.util_make_link ('/tracker/?group_id='.$group->getID(),$group->getPublicName()).'</td></tr>';
+ }
+ $last_group = $group->getID() ;
+
+ echo '<tr '. $HTML->boxGetAltRowStyle(0) .'><td align="center">' ;
+ echo util_make_link ('/tracker/?group_id='.$group->getID().'&atid='.$at->getID().'&func=monitor',
+ '<img src="'. $HTML->imgroot . '/ic/trash.png" height="16" width="16" '.'border="0" alt="'._('Stop monitoring').'" />') ;
+ echo '</td><td width="99%">' ;
+ echo util_make_link ('/tracker/?group_id='.$group->getID().'&atid='.$at->getID(),
+ $at->getName()) ;
+ echo '</td></tr>';
}
- $at_found++ ;
- if ($group->getID() != $last_group) {
- echo '
- <tr '. $HTML->boxGetAltRowStyle(1) .'><td colspan="2">'.util_make_link ('/forum/?group_id='.$group->getID(),$group->getPublicName()).'</td></tr>';
- }
- $last_group = $group->getID() ;
-
- echo '<tr '. $HTML->boxGetAltRowStyle(0) .'><td align="center">' ;
- echo util_make_link ('/tracker/?group_id='.$group->getID().'&atid='.$at->getID().'&func=monitor',
- '<img src="'. $HTML->imgroot . '/ic/trash.png" height="16" width="16" '.'border="0" alt="'._('Stop monitoring').'" />') ;
- echo '</td><td width="99%">' ;
- echo util_make_link ('/tracker/?group_id='.$group->getID().'&atid='.$at->getID(),
- $at->getName()) ;
- echo '</td></tr>';
}
}
}
More information about the Fusionforge-commits
mailing list