Added dropdown menu on navbar, when clicked displays My Account and Logout links
parent
a893818d56
commit
4e1d5e5b06
|
@ -44,11 +44,16 @@ html
|
||||||
li(class=title=='Create Account'?'active':undefined)
|
li(class=title=='Create Account'?'active':undefined)
|
||||||
a(href='/signup') Create Account
|
a(href='/signup') Create Account
|
||||||
else
|
else
|
||||||
li(class=title=='Account Management'?'active':undefined)
|
li.dropdown(class=title=='Account Management'?'active':undefined)
|
||||||
a(href='/account')
|
a.dropdown-toggle(href='#', data-toggle='dropdown')
|
||||||
if user.profile.picture
|
if user.profile.picture
|
||||||
img(src='#{user.profile.picture}')
|
img(src='#{user.profile.picture}')
|
||||||
= user.profile.name || user.id
|
| #{user.profile.name || user.id}
|
||||||
|
i.caret
|
||||||
|
ul.dropdown-menu
|
||||||
|
li
|
||||||
|
a(href='/account') My Account
|
||||||
|
li.divider
|
||||||
li
|
li
|
||||||
a(href='/logout') Logout
|
a(href='/logout') Logout
|
||||||
.container
|
.container
|
||||||
|
|
Loading…
Reference in New Issue