From: David ‘Bombe’ Roden Date: Fri, 25 Mar 2011 23:32:23 +0000 (+0100) Subject: Show potential error messages on the “invalid” page. X-Git-Tag: beta-freefall-0.6.2-1~74 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=a10d2be201b268cc1e6c6eef37024bfdbbdc1fbf;p=Sone.git Show potential error messages on the “invalid” page. --- diff --git a/src/main/resources/templates/invalid.html b/src/main/resources/templates/invalid.html index d838134..ea97d00 100644 --- a/src/main/resources/templates/invalid.html +++ b/src/main/resources/templates/invalid.html @@ -2,6 +2,14 @@

<%= Page.Invalid.Page.Title|l10n|html>

-

<%= Page.Invalid.Text|l10n|html|replace needle="{link}" replacement=''|replace needle="{/link}" replacement=''>

+ <%foreach messages message> + <%if message|substring start=0 length=1|match value='!'> +

<% message|substring start=1|parse>

+ <%else> +

<% message|parse>

+ <%/if> + <%foreachelse> +

<%= Page.Invalid.Text|l10n|html|replace needle="{link}" replacement=''|replace needle="{/link}" replacement=''>

+ <%/foreach> <%include include/tail.html>