mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-02 17:10:46 -05:00
34 lines
1 KiB
Text
34 lines
1 KiB
Text
nav.navbar.navbar-default
|
|
.container-fluid
|
|
.navbar-header
|
|
button.navbar-toggle(data-toggle="collapse",data-target="#navbar-collapse")
|
|
i.fa.fa-bars
|
|
a(href='/').navbar-brand
|
|
|
|
.navbar-collapse.collapse#navbar-collapse
|
|
ul.nav.navbar-nav.navbar-right
|
|
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)
|
|
| !{item.text}
|
|
b.caret
|
|
ul.dropdown-menu
|
|
each child in item.dropdown
|
|
if child.divider
|
|
li.divider
|
|
else
|
|
li
|
|
if child.url
|
|
a(href=child.url, class=child.class) !{child.text}
|
|
else
|
|
| !{child.text}
|
|
else
|
|
li(class=item.class)
|
|
if item.url
|
|
a(href=item.url, class=item.class) !{item.text}
|
|
else
|
|
| !{item.text}
|
|
|
|
|