Show potential error messages on the “invalid” page.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 25 Mar 2011 23:32:23 +0000 (00:32 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 25 Mar 2011 23:32:23 +0000 (00:32 +0100)
src/main/resources/templates/invalid.html

index d838134..ea97d00 100644 (file)
@@ -2,6 +2,14 @@
 
        <h1><%= Page.Invalid.Page.Title|l10n|html></h1>
 
-       <p><%= Page.Invalid.Text|l10n|html|replace needle="{link}" replacement='<a href="index.html">'|replace needle="{/link}" replacement='</a>'></p>
+       <%foreach messages message>
+               <%if message|substring start=0 length=1|match value='!'>
+                       <p class="error"><% message|substring start=1|parse></p>
+               <%else>
+                       <p><% message|parse></p>
+               <%/if>
+       <%foreachelse>
+               <p><%= Page.Invalid.Text|l10n|html|replace needle="{link}" replacement='<a href="index.html">'|replace needle="{/link}" replacement='</a>'></p>
+       <%/foreach>
 
 <%include include/tail.html>