fix clicking on image or points always takes you to /account

This commit is contained in:
Berkeley Martinez
2015-08-05 19:12:54 -07:00
parent e6d05e3421
commit a838a4097d

View File

@ -21,15 +21,7 @@ nav.navbar.navbar-default.navbar-fixed-top.nav-height
a.btn.signup-btn.signup-btn-nav(href='/login') Sign in a.btn.signup-btn.signup-btn-nav(href='/login') Sign in
else else
li li
if (user.username) a(href='/account') [ #{user.progressTimestamps.length} ]
a(href='/' + user.username) [ #{user.progressTimestamps.length} ]
else
a(href='/account') [ #{user.progressTimestamps.length} ]
.hidden-xs.hidden-sm .hidden-xs.hidden-sm
if (user.username) a(href='/account')
a(href='/' + user.username) img.profile-picture.float-right(src='#{user.picture}')
img.profile-picture.float-right(src='#{user.picture}')
else
a(href='/account')
img.profile-picture.float-right(src='#{user.picture}')