[Fusionforge-commits] r10915 - trunk/src/www/snippet

Franck VILLAUME nerville at libremir.placard.fr.eu.org
Fri Oct 8 19:37:27 CEST 2010


Author: nerville
Date: 2010-10-08 19:37:26 +0200 (Fri, 08 Oct 2010)
New Revision: 10915

Modified:
   trunk/src/www/snippet/detail.php
Log:
fix display error message

Modified: trunk/src/www/snippet/detail.php
===================================================================
--- trunk/src/www/snippet/detail.php	2010-10-08 17:30:02 UTC (rev 10914)
+++ trunk/src/www/snippet/detail.php	2010-10-08 17:37:26 UTC (rev 10915)
@@ -54,7 +54,7 @@
 
 	$rows=db_numrows($result);
 	if (!$result || $rows < 1) {
-		echo '<h3>' ._('Error - no versions found').'</h3>';
+		echo '<div class="error">' ._('Error - no versions found').'</div>';
 	} else {
 		echo '
 		<h3>' ._('Versions Of This Snippet:').'</h3>
@@ -94,7 +94,6 @@
 		echo '
 		</p><p>'._('Download a raw-text version of this code by clicking on &quot;<strong>Download Version</strong>&quot;').'
 		</p>';
-	}
 	/*
 		show the latest version of this snippet's code
 	*/
@@ -116,6 +115,7 @@
 	<h3><a href="'.util_make_url ('/snippet/addversion.php?type=snippet&amp;id='.htmlspecialchars($id)).'"><span class="important">'._('Submit a new version').'</span></a></h3>
 	<p>' ._('You can submit a new version of this snippet if you have modified it and you feel it is appropriate to share with others.').'.</p>';
 
+	}
 	snippet_footer(array());
 
 } else if ($type=='package') {
@@ -144,7 +144,7 @@
 
 	$rows=db_numrows($result);
 	if (!$result || $rows < 1) {
-		echo '<h3>' ._('Error - no versions found').'</h3>';
+		echo '<div class="error">' ._('Error - no versions found').'</div>';
 	} else {
 		echo '
 		<h3>' ._('Versions Of This Package:').'</h3>
@@ -181,7 +181,6 @@
 		echo '
 		</p><p>' ._('Download a raw-text version of this code by clicking on &quot;<strong>Download Version</strong>&quot;').'
 		</p>';
-	}
 
 	/*
 		show the latest version of the package
@@ -203,6 +202,7 @@
 	<h3><a href="'.util_make_url ('/snippet/addversion.php?type=package&amp;id='.$id).'"><span class="important">' ._('Submit a new version').'</span></a></h3>
 	<p>' ._('You can submit a new version of this package if you have modified it and you feel it is appropriate to share with others.').'.</p>';
 
+	}
 	snippet_footer(array());
 
 } else if ($type=='packagever') {




More information about the Fusionforge-commits mailing list