UI: Display all messages in defaultLayout, not just one
This commit is contained in:
parent
4dcd6eb1b2
commit
deba50f835
2 changed files with 4 additions and 3 deletions
|
@ -240,7 +240,7 @@ instance Yesod App where
|
|||
|
||||
defaultLayout widget = do
|
||||
master <- getYesod
|
||||
mmsg <- getMessage
|
||||
msgs <- getMessages
|
||||
mperson <- do
|
||||
mperson' <- maybeAuthAllowUnverified
|
||||
for mperson' $ \ (p@(Entity pid person), verified) -> runDB $ do
|
||||
|
|
|
@ -81,8 +81,9 @@ $if federationDisabled
|
|||
|
||||
^{breadcrumbsW}
|
||||
|
||||
$maybe msg <- mmsg
|
||||
<div #message>#{msg}
|
||||
<div #messages>
|
||||
$forall (_status, msg) <- msgs
|
||||
<div .message>#{msg}
|
||||
|
||||
^{widget}
|
||||
|
||||
|
|
Loading…
Reference in a new issue