Skip to content

@dph01 /gist:1817391
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
twitter nav menu definition
def userLinkText = User.currentUser.map(_.shortName).openOr("not logged in").toString
val entries = List(Menu("Home") / "index" >> LocGroup("main"),
Menu("Page 1") / "page1" >> LocGroup("main"),
Menu("Page 2") / "page2" >> LocGroup("main"),
Menu("Page 3") / "page3" >> LocGroup("main") >> PlaceHolder submenus (
Menu("Page 3a") / "page3a" ,
Menu("Page 3b") / "page3b" ,
Menu("Page 3c") / "page3c") ,
User.loginMenuLoc.open_!,
User.createUserMenuLoc.open_!,
Menu("user",userLinkText) / "#" >>
MustBeLoggedIn >> LocGroup("user") >> PlaceHolder submenus (
User.logoutMenuLoc.open_!,
User.editUserMenuLoc.open_!,
User.changePasswordMenuLoc.open_!
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.