aboutsummaryrefslogtreecommitdiff
path: root/Assistant
diff options
context:
space:
mode:
Diffstat (limited to 'Assistant')
-rw-r--r--Assistant/WebApp/SideBar.hs7
1 files changed, 3 insertions, 4 deletions
diff --git a/Assistant/WebApp/SideBar.hs b/Assistant/WebApp/SideBar.hs
index e0c31c949..2fbd4e8c0 100644
--- a/Assistant/WebApp/SideBar.hs
+++ b/Assistant/WebApp/SideBar.hs
@@ -24,11 +24,10 @@ import Control.Concurrent
sideBarDisplay :: Maybe Widget -> Widget
sideBarDisplay onsidebar = do
+ {- If a widget was passed to include on the sidebar, display
+ - it above alerts. -}
+ let perpage = maybe noop id onsidebar
let content = do
- {- If a widget was passed to include on the sidebar, display
- - it above alerts. -}
- maybe noop id onsidebar
-
{- Any yesod message appears as the first alert. -}
maybe noop rendermessage =<< lift getMessage