overleaf/services/web/app/views/layout/navbar.jade

64 lines
1.9 KiB
Text
Raw Normal View History

2014-06-04 12:46:22 -04:00
nav.navbar.navbar-default
.container-fluid
.navbar-header
2014-06-04 12:46:22 -04:00
button.navbar-toggle(data-toggle="collapse",data-target="#navbar-collapse")
i.fa.fa-bars
2014-06-06 11:37:59 -04:00
a(href='/').navbar-brand
2014-06-04 12:46:22 -04:00
.navbar-collapse.collapse#navbar-collapse
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)
| !{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}
2014-06-20 16:35:42 -04:00
else
| !{child.text}
else
li(class=item.class)
if item.url
a(href=item.url, class=item.class) !{item.text}
2014-06-20 16:35:42 -04:00
else
| !{item.text}
2014-06-04 12:46:22 -04:00
2014-06-20 16:35:42 -04:00
//- li.dropdown
//- a.dropdown-toggle(href='#',data-toggle="dropdown")
//- | Help
//- b.caret
//- ul.dropdown-menu
//- li
//- a(href='/learn') Documentation
//- -if(typeof(tenderUrl) != "undefined")
//- li
//- a.js-tender-widget(href='#') Contact Support
2014-06-04 12:46:22 -04:00
2014-06-20 16:35:42 -04:00
//- -if(session && session.user)
//- li.dropdown
//- a.dropdown-toggle(href="#",data-toggle="dropdown")
//- | Account
//- b.caret
//- ul.dropdown-menu
//- li
//- a(href='/user/settings').userSettingsLink Account Settings
//- - if (settings.enableSubscriptions)
//- li
//- a(href='/user/subscription').subscriptionLink Subscription
//- li
//- a(href='/logout').logoutLink Logout
//- -else
//- li
//- a(href='/register') Register
//- li
//- a#loginLink(href='/login'+getRedirAsQueryString()) Login
2014-02-12 05:23:40 -05:00