Added active class to profile name in navbar if current page is account management

This commit is contained in:
Sahat Yalkabov
2013-12-06 00:58:41 -05:00
parent bc433afe9f
commit 1affaa4859
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
extends layout extends layout
block content block content
h2 Account Settings h2 Account Management
ul.nav.nav-tabs ul.nav.nav-tabs
li.active li.active
a(href='#basic', data-toggle='tab') Basic Info a(href='#basic', data-toggle='tab') Basic Info

View File

@ -40,7 +40,7 @@ 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.user li.user(class=title=='Account Management'?'active':undefined)
a(href='/account') a(href='/account')
img(src='#{user.profile.picture}') img(src='#{user.profile.picture}')
| #{user.profile.name} | #{user.profile.name}