Include message in default site template
This commit is contained in:
parent
7064e8bdcc
commit
2a04410571
@ -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
|
||||
|
||||
@ -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^
|
||||
|]
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user