[Fusionforge-commits] r8856 - in trunk/gforge/plugins/contribtracker: common www

Roland Mas lolando at libremir.placard.fr.eu.org
Tue Feb 23 16:50:21 CET 2010


Author: lolando
Date: 2010-02-23 16:50:21 +0100 (Tue, 23 Feb 2010)
New Revision: 8856

Modified:
   trunk/gforge/plugins/contribtracker/common/ContribTrackerPlugin.class.php
   trunk/gforge/plugins/contribtracker/www/index.php
Log:
Make actor logos clickable (contribtracker)

Modified: trunk/gforge/plugins/contribtracker/common/ContribTrackerPlugin.class.php
===================================================================
--- trunk/gforge/plugins/contribtracker/common/ContribTrackerPlugin.class.php	2010-02-23 14:20:32 UTC (rev 8855)
+++ trunk/gforge/plugins/contribtracker/common/ContribTrackerPlugin.class.php	2010-02-23 15:50:21 UTC (rev 8856)
@@ -138,7 +138,9 @@
 								// Actors involved
 								echo '<td>' ;
 								if ($p->getActor()->getLogo() != '') {
-									print ' <img type="image/png" src="'.util_make_url ('/plugins/'.$this->name.'/actor_logo.php?actor_id='.$p->getActor()->getId ()).'" />' ;
+									print ' ';
+									print util_make_link ('/plugins/'.$this->name.'/?actor_id='.$p->getActor()->getId (),
+											      '<img type="image/png" src="'.util_make_url ('/plugins/'.$this->name.'/actor_logo.php?actor_id='.$p->getActor()->getId ()).'" />') ;
 								}
 								echo '</td><td>' ;
 								printf (_('%s (%s)'),

Modified: trunk/gforge/plugins/contribtracker/www/index.php
===================================================================
--- trunk/gforge/plugins/contribtracker/www/index.php	2010-02-23 14:20:32 UTC (rev 8855)
+++ trunk/gforge/plugins/contribtracker/www/index.php	2010-02-23 15:50:21 UTC (rev 8856)
@@ -44,7 +44,9 @@
 					htmlspecialchars ($p->getActor()->getName())),
 			htmlspecialchars ($p->getActor()->getLegalStructure()->getName())) ;
 		if ($p->getActor()->getLogo() != '') {
-			print ' <img type="image/png" src="'.util_make_url ('/plugins/'.$plugin->name.'/actor_logo.php?actor_id='.$p->getActor()->getId ()).'" />' ;
+			print ' ';
+			print util_make_link ('/plugins/'.$plugin->name.'/?actor_id='.$p->getActor()->getId (),
+					      '<img type="image/png" src="'.util_make_url ('/plugins/'.$plugin->name.'/actor_logo.php?actor_id='.$p->getActor()->getId ()).'" />') ;
 		}
 		print '</li>' ;
 	}




More information about the Fusionforge-commits mailing list