2006/unicorn/WebContent/WEB-INF/resources/templates index.vm,1.2,1.3

Update of /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates
In directory hutz:/tmp/cvs-serv26505/WebContent/WEB-INF/resources/templates

Modified Files:
	index.vm 
Log Message:
unicorn now displays error messages on the index page instead of a dedicated page

Index: index.vm
===================================================================
RCS file: /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates/index.vm,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- index.vm	28 Aug 2009 12:40:00 -0000	1.2
+++ index.vm	31 Aug 2009 15:00:15 -0000	1.3
@@ -11,6 +11,16 @@
 					</div>
 #end
 
+#if ($message)
+	<div id="messages">
+		<div class="error">
+			<h4>$message.Message</h4>
+			#if ($message.Content)
+			<pre>$message.Content</pre>
+			#end
+		</div>
+	</div>
+#end
 	<div id="frontforms">
 		<ul id="tabset_tabs">
 			<li><a href="#validate-by-uri">$validate-by-uri</a></li><!--

Received on Monday, 31 August 2009 15:00:28 UTC