if user is github cool navbar links to account show page

This commit is contained in:
Berkeley Martinez
2015-08-07 18:26:18 -07:00
parent 83397b7e1b
commit 611098ba09

View File

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