From a838a4097d6788373802dbb4e83efb20561bf5e2 Mon Sep 17 00:00:00 2001 From: Berkeley Martinez Date: Wed, 5 Aug 2015 19:12:54 -0700 Subject: [PATCH] fix clicking on image or points always takes you to /account --- server/views/partials/navbar.jade | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/server/views/partials/navbar.jade b/server/views/partials/navbar.jade index 8d310d8846..a306151639 100644 --- a/server/views/partials/navbar.jade +++ b/server/views/partials/navbar.jade @@ -21,15 +21,7 @@ nav.navbar.navbar-default.navbar-fixed-top.nav-height a.btn.signup-btn.signup-btn-nav(href='/login') Sign in else li - if (user.username) - a(href='/' + user.username) [ #{user.progressTimestamps.length} ] - - else - a(href='/account') [ #{user.progressTimestamps.length} ] + a(href='/account') [ #{user.progressTimestamps.length} ] .hidden-xs.hidden-sm - if (user.username) - a(href='/' + user.username) - img.profile-picture.float-right(src='#{user.picture}') - else - a(href='/account') - img.profile-picture.float-right(src='#{user.picture}') + a(href='/account') + img.profile-picture.float-right(src='#{user.picture}')