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

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Wed Mar 3 22:00:41 CET 2010


Author: aljeux
Date: 2010-03-03 22:00:40 +0100 (Wed, 03 Mar 2010)
New Revision: 8925

Modified:
   trunk/gforge/www/include/Layout.class.php
   trunk/gforge/www/include/project_home.php
Log:
New getSurveyPic() to use new method from Layout for the survey icon/link

Modified: trunk/gforge/www/include/Layout.class.php
===================================================================
--- trunk/gforge/www/include/Layout.class.php	2010-03-03 21:00:17 UTC (rev 8924)
+++ trunk/gforge/www/include/Layout.class.php	2010-03-03 21:00:40 UTC (rev 8925)
@@ -1158,6 +1158,10 @@
 		return $this->getPicto('ic/taskman20g.png', $title, $alt);
 	}
     
+	function getSurveyPic($title = '', $alt = '') {
+		return $this->getPicto('ic/survey16b.png', $title, $alt);
+	}
+
 	function getScmPic($title = '', $alt = '') {
 		return $this->getPicto('ic/cvs16b.png', $title, $alt);
 	}

Modified: trunk/gforge/www/include/project_home.php
===================================================================
--- trunk/gforge/www/include/project_home.php	2010-03-03 21:00:17 UTC (rev 8924)
+++ trunk/gforge/www/include/project_home.php	2010-03-03 21:00:40 UTC (rev 8925)
@@ -401,8 +401,8 @@
 
 if ($project->usesSurvey()) {
 	echo '<div class="public-area-box">';
-	print html_image('ic/survey16b.png','20','20',array('alt'=>"")) . "&nbsp;";
-	print util_make_link( '/survey/?group_id='.$group_id, '&nbsp;'._('Surveys'));
+	$link_content = $HTML->getSurveyPic('') . '&nbsp;' . _('Surveys');
+	echo util_make_link( '/survey/?group_id='.$group_id, $link_content);
 	echo ' ( <strong>'. project_get_survey_count($group_id) .'</strong> ' . _('surveys').'  )';
 	echo '</div>';
 }




More information about the Fusionforge-commits mailing list