mirror of
https://code.sup39.dev/repos/Wqawg
synced 2024-12-29 02:14:52 +09:00
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
|
defaultLayout widget = do
|
||||||
master <- getYesod
|
master <- getYesod
|
||||||
mmsg <- getMessage
|
msgs <- getMessages
|
||||||
mperson <- do
|
mperson <- do
|
||||||
mperson' <- maybeAuthAllowUnverified
|
mperson' <- maybeAuthAllowUnverified
|
||||||
for mperson' $ \ (p@(Entity pid person), verified) -> runDB $ do
|
for mperson' $ \ (p@(Entity pid person), verified) -> runDB $ do
|
||||||
|
|
|
@ -81,8 +81,9 @@ $if federationDisabled
|
||||||
|
|
||||||
^{breadcrumbsW}
|
^{breadcrumbsW}
|
||||||
|
|
||||||
$maybe msg <- mmsg
|
<div #messages>
|
||||||
<div #message>#{msg}
|
$forall (_status, msg) <- msgs
|
||||||
|
<div .message>#{msg}
|
||||||
|
|
||||||
^{widget}
|
^{widget}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue