2014-06-04 16:46:22 +00:00
|
|
|
nav.navbar.navbar-default
|
2014-06-04 15:14:35 +00:00
|
|
|
.container-fluid
|
|
|
|
.navbar-header
|
2014-07-22 10:50:15 +00:00
|
|
|
button.navbar-toggle(ng-init="navCollapsed = true", ng-click="navCollapsed = !navCollapsed", ng-class="{active: !navCollapsed}")
|
2014-06-04 16:46:22 +00:00
|
|
|
i.fa.fa-bars
|
2015-02-05 16:56:35 +00:00
|
|
|
if nav.title
|
|
|
|
a(href='/').navbar-title #{nav.title}
|
|
|
|
else
|
|
|
|
a(href='/').navbar-brand
|
2014-06-04 15:14:35 +00:00
|
|
|
|
2014-07-22 10:50:15 +00:00
|
|
|
.navbar-collapse.collapse(collapse="navCollapsed")
|
2015-03-19 14:22:48 +00:00
|
|
|
|
2014-06-04 16:46:22 +00:00
|
|
|
ul.nav.navbar-nav.navbar-right
|
2015-03-19 14:22:48 +00:00
|
|
|
if (session && session.user && session.user.isAdmin)
|
2015-06-03 10:14:26 +00:00
|
|
|
li.dropdown(class="subdued", dropdown)
|
|
|
|
a.dropdown-toggle(href, dropdown-toggle)
|
2015-03-19 14:22:48 +00:00
|
|
|
| Admin
|
|
|
|
b.caret
|
|
|
|
ul.dropdown-menu
|
|
|
|
li
|
2015-09-16 11:17:58 +00:00
|
|
|
a(href="/admin/user") Manage Users
|
2015-03-19 14:22:48 +00:00
|
|
|
|
2014-06-20 20:35:42 +00: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
|
2015-06-03 10:14:26 +00:00
|
|
|
li.dropdown(class=item.class, dropdown)
|
|
|
|
a.dropdown-toggle(href, dropdown-toggle)
|
2014-08-05 10:22:42 +00:00
|
|
|
| !{translate(item.text)}
|
2014-06-20 20:35:42 +00:00
|
|
|
b.caret
|
|
|
|
ul.dropdown-menu
|
|
|
|
each child in item.dropdown
|
|
|
|
if child.divider
|
|
|
|
li.divider
|
|
|
|
else
|
|
|
|
li
|
|
|
|
if child.url
|
2014-08-05 10:22:42 +00:00
|
|
|
a(href=child.url, class=child.class) !{translate(child.text)}
|
2014-06-20 20:35:42 +00:00
|
|
|
else
|
2014-08-05 10:22:42 +00:00
|
|
|
| !{translate(child.text)}
|
2014-06-20 20:35:42 +00:00
|
|
|
else
|
|
|
|
li(class=item.class)
|
|
|
|
if item.url
|
2014-08-05 10:22:42 +00:00
|
|
|
a(href=item.url, class=item.class) !{translate(item.text)}
|
2014-06-20 20:35:42 +00:00
|
|
|
else
|
2014-08-05 10:22:42 +00:00
|
|
|
| !{translate(item.text)}
|
2014-08-14 15:33:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2014-02-12 10:23:40 +00:00
|
|
|
|