From 4e1d5e5b06f5d15f59a979cb70f0d9aed2bf7137 Mon Sep 17 00:00:00 2001 From: Sahat Yalkabov Date: Thu, 23 Jan 2014 20:35:19 -0500 Subject: [PATCH] Added dropdown menu on navbar, when clicked displays My Account and Logout links --- views/layout.jade | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/views/layout.jade b/views/layout.jade index cad23b06a2b..be65e0d981a 100644 --- a/views/layout.jade +++ b/views/layout.jade @@ -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