Simplify navbar implementation - this will also allow seamlessly adding a third, centred nav if desired

This commit is contained in:
Danielle McLean 2017-10-06 14:43:00 +11:00
parent 526e105b8b
commit 92373fcfa5
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5
3 changed files with 8 additions and 10 deletions

View file

@ -97,8 +97,7 @@ instance Yesod App where
-- Get the breadcrumbs, as defined in the YesodBreadcrumbs instance.
(title, parents) <- breadcrumbs
let navbarLeftMenuItems = leftMenuItems muser
navbarRightMenuItems = rightMenuItems muser
let navbars = [leftMenuItems, rightMenuItems] <*> [muser]
-- We break up the default layout into two components:
-- default-layout is the contents of the body tag, and