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)
|
||||
a(href='/signup') Create Account
|
||||
else
|
||||
li(class=title=='Account Management'?'active':undefined)
|
||||
a(href='/account')
|
||||
li.dropdown(class=title=='Account Management'?'active':undefined)
|
||||
a.dropdown-toggle(href='#', data-toggle='dropdown')
|
||||
if 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
|
||||
a(href='/logout') Logout
|
||||
.container
|
||||
|
|
Loading…
Reference in New Issue