Include message in default site template

This commit is contained in:
Michael Snoyman 2010-09-20 16:05:27 +02:00
parent 7064e8bdcc
commit 2a04410571
2 changed files with 4 additions and 1 deletions

View File

@ -571,7 +571,7 @@ $maybe fb f
%p
%a!href=$f$ Login via Facebook
$maybe rpxnowSettings.y r
%h3 OpenID
%h3 Rpxnow
%p
%a!onclick="return false;"!href="https://$rpxnowApp.r$.rpxnow.com/openid/v2/signin?token_url=@tm.RpxnowR@"
Login via Rpxnow

View File

@ -112,6 +112,7 @@ class Eq (Route a) => Yesod a where
defaultLayout :: GWidget sub a () -> GHandler sub a RepHtml
defaultLayout w = do
p <- widgetToPageContent w
mmsg <- getMessage
hamletToRepHtml [$hamlet|
!!!
%html
@ -119,6 +120,8 @@ class Eq (Route a) => Yesod a where
%title $pageTitle.p$
^pageHead.p^
%body
$maybe mmsg msg
%p.message $msg$
^pageBody.p^
|]