Added active class to profile name in navbar if current page is account management
This commit is contained in:
@ -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
|
||||||
|
@ -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}
|
||||||
|
Reference in New Issue
Block a user