Added dropdown menu on navbar, when clicked displays My Account and Logout links

pull/2/head
Sahat Yalkabov 2014-01-23 20:35:19 -05:00
parent a893818d56
commit 4e1d5e5b06
1 changed files with 10 additions and 5 deletions

View File

@ -44,12 +44,17 @@ 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
li
a(href='/logout') Logout
| #{user.profile.name || user.id} 
i.caret
ul.dropdown-menu
li
a(href='/account') My Account
li.divider
li
a(href='/logout') Logout
.container
block content