[Fusionforge-commits] r10488 - trunk/src/www/frs

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Wed Sep 15 19:00:19 CEST 2010


Author: aljeux
Date: 2010-09-15 19:00:19 +0200 (Wed, 15 Sep 2010)
New Revision: 10488

Modified:
   trunk/src/www/frs/shownotes.php
Log:
Improve layout on frs/shownotes

Modified: trunk/src/www/frs/shownotes.php
===================================================================
--- trunk/src/www/frs/shownotes.php	2010-09-15 17:00:13 UTC (rev 10487)
+++ trunk/src/www/frs/shownotes.php	2010-09-15 17:00:19 UTC (rev 10488)
@@ -53,11 +53,8 @@
 
 	frs_header(array('title'=>_('File Release Notes and Changelog'),'group'=>$group_id));
 
-	echo $HTML->boxTop(_('Notes:'));
+	echo '<h3>'._('Release Name:').' <a href="/frs/?group_id='.db_result($result,0,'group_id').'&amp;release_id='.$release_id.'">'.db_result($result,0,'name').'</a></h3>';
 
-	echo '<h3>'._('Release Name:').' '.
-		util_make_link ('/frs/?group_id='.db_result($result,0,'group_id').'&amp;release_id='.$release_id,db_result($result,0,'name')).'</h3>';
-
 	/*
 	 Show preformatted or plain notes/changes
 	 */
@@ -69,9 +66,20 @@
 		$closing = '</p>';
 	}
 
-	echo $HTML->boxMiddle(_('Notes:'));
-	echo $opening.db_result($result,0,'notes').$closing;
+	if (db_result($result,0,'notes')) {
+		echo $HTML->boxTop(_('Release Notes'));
+		echo "$opening".db_result($result,0,'notes')."$closing";
+		echo $HTML->boxBottom();
+	}
 
+	if (db_result($result,0,'changes')) {
+		echo $HTML->boxTop(_('Change Log'));
+		echo "$opening".db_result($result,0,'changes')."$closing";
+		echo $HTML->boxBottom();
+	}
+
+
+
 	echo $HTML->boxMiddle(_('Changes:'));
 	echo $opening.db_result($result,0,'changes').$closing;
 	echo $HTML->boxBottom();




More information about the Fusionforge-commits mailing list