2014-06-04 12:46:22 -04:00
|
|
|
nav.navbar.navbar-default
|
2014-06-04 11:14:35 -04:00
|
|
|
.container-fluid
|
|
|
|
.navbar-header
|
2014-07-22 06:50:15 -04:00
|
|
|
button.navbar-toggle(ng-init="navCollapsed = true", ng-click="navCollapsed = !navCollapsed", ng-class="{active: !navCollapsed}")
|
2014-06-04 12:46:22 -04:00
|
|
|
i.fa.fa-bars
|
2014-06-06 11:37:59 -04:00
|
|
|
a(href='/').navbar-brand
|
2014-06-04 11:14:35 -04:00
|
|
|
|
2014-07-22 06:50:15 -04:00
|
|
|
.navbar-collapse.collapse(collapse="navCollapsed")
|
2014-08-13 18:06:15 -04:00
|
|
|
|
2014-06-04 12:46:22 -04:00
|
|
|
ul.nav.navbar-nav.navbar-right
|
2014-06-20 16:35:42 -04:00
|
|
|
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.dropdown
|
|
|
|
li.dropdown(class=item.class)
|
|
|
|
a.dropdown-toggle(href)
|
2014-08-05 06:22:42 -04:00
|
|
|
| !{translate(item.text)}
|
2014-06-20 16:35:42 -04:00
|
|
|
b.caret
|
|
|
|
ul.dropdown-menu
|
|
|
|
each child in item.dropdown
|
|
|
|
if child.divider
|
|
|
|
li.divider
|
|
|
|
else
|
|
|
|
li
|
|
|
|
if child.url
|
2014-08-05 06:22:42 -04:00
|
|
|
a(href=child.url, class=child.class) !{translate(child.text)}
|
2014-06-20 16:35:42 -04:00
|
|
|
else
|
2014-08-05 06:22:42 -04:00
|
|
|
| !{translate(child.text)}
|
2014-06-20 16:35:42 -04:00
|
|
|
else
|
|
|
|
li(class=item.class)
|
|
|
|
if item.url
|
2014-08-05 06:22:42 -04:00
|
|
|
a(href=item.url, class=item.class) !{translate(item.text)}
|
2014-06-20 16:35:42 -04:00
|
|
|
else
|
2014-08-05 06:22:42 -04:00
|
|
|
| !{translate(item.text)}
|
2014-06-04 12:46:22 -04:00
|
|
|
|
2014-02-12 05:23:40 -05:00
|
|
|
|