diff options
-rw-r--r-- | Assistant/WebApp/SideBar.hs | 7 | ||||
-rw-r--r-- | templates/sidebar/main.hamlet | 5 |
2 files changed, 6 insertions, 6 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 diff --git a/templates/sidebar/main.hamlet b/templates/sidebar/main.hamlet index 32900b920..63f201cf1 100644 --- a/templates/sidebar/main.hamlet +++ b/templates/sidebar/main.hamlet @@ -1,3 +1,4 @@ -<div .span3 ##{ident}> - <div .sidebar-nav> +<div .span3> + ^{perpage} + <div .sidebar-nav ##{ident}> ^{content} |