added ugly dropdown for testing

This commit is contained in:
Henry Oswald 2014-08-01 14:43:06 +01:00
parent d047d44079
commit 03db0bc797

View file

@ -6,6 +6,17 @@ nav.navbar.navbar-default
a(href='/').navbar-brand a(href='/').navbar-brand
.navbar-collapse.collapse(collapse="navCollapsed") .navbar-collapse.collapse(collapse="navCollapsed")
.dropdown
button.btn.btn-default.dropdown-toggle Lang
span.caret
ul.dropdown-menu
li
a(href="/?setLng=en-GB") british
a(href="/?setLng=en-US") USA
a(href="/?setLng=fr-FR") french
ul.nav.navbar-nav.navbar-right ul.nav.navbar-nav.navbar-right
each item in nav.header each item in nav.header
if ((item.only_when_logged_in && session && session.user) || (item.only_when_logged_out && (!session || !session.user)) || (!item.only_when_logged_out && !item.only_when_logged_in)) if ((item.only_when_logged_in && session && session.user) || (item.only_when_logged_out && (!session || !session.user)) || (!item.only_when_logged_out && !item.only_when_logged_in))