2015-01-26 11:02:22 -08:00
|
|
|
.navbar-header
|
2015-02-26 13:22:12 -08:00
|
|
|
button.hamburger.navbar-toggle(type='button', data-toggle='collapse', data-target='.navbar-collapse')
|
|
|
|
.col-xs-6
|
|
|
|
span.hamburger-text Menu
|
|
|
|
.col-xs-6
|
|
|
|
span.sr-only Toggle navigation
|
|
|
|
span.icon-bar
|
|
|
|
span.icon-bar
|
|
|
|
span.icon-bar
|
2015-01-26 11:02:22 -08:00
|
|
|
a.navbar-brand(href='/')
|
2015-01-21 14:12:19 -08:00
|
|
|
img.img-responsive.nav-logo(src='https://s3.amazonaws.com/freecodecamp/freecodecamp_logo.svg', alt='learn to code javascript at Free Code Camp logo')
|
2015-01-26 11:02:22 -08:00
|
|
|
.collapse.navbar-collapse
|
|
|
|
ul.nav.navbar-nav.navbar-right.hamburger-dropdown
|
2015-02-19 16:33:08 -08:00
|
|
|
li
|
|
|
|
a(href='/challenges') Challenges
|
|
|
|
li
|
|
|
|
a(href='/chat') Chat
|
|
|
|
li
|
|
|
|
a(href='http://forum.freecodecamp.com' target='_blank') Forum
|
2014-12-30 11:40:37 -08:00
|
|
|
li
|
2015-01-26 11:02:22 -08:00
|
|
|
a(href='/bonfires') Bonfires
|
2014-12-30 11:40:37 -08:00
|
|
|
if !user
|
2015-01-26 11:02:22 -08:00
|
|
|
li
|
|
|
|
li
|
|
|
|
a.btn.signup-btn.signup-btn-nav(href='/login') Sign in
|
2014-12-30 11:40:37 -08:00
|
|
|
else
|
2015-01-26 11:02:22 -08:00
|
|
|
li
|
2015-02-19 16:33:08 -08:00
|
|
|
if (user.profile.username)
|
|
|
|
a(href='/' + user.profile.username) [ #{user.points} ]
|
|
|
|
else
|
|
|
|
a(href='/account') [ #{user.points} ]
|
2014-12-30 20:26:12 -08:00
|
|
|
.hidden-xs
|
2015-01-26 11:02:22 -08:00
|
|
|
if user.profile.picture
|
2015-01-29 22:01:27 -08:00
|
|
|
if (user.profile.username)
|
|
|
|
a(href='/' + user.profile.username)
|
|
|
|
img.profile-picture.float-right(src='#{user.profile.picture}')
|
|
|
|
else
|
|
|
|
a(href='/account')
|
|
|
|
img.profile-picture.float-right(src='#{user.profile.picture}')
|
2015-01-26 11:02:22 -08:00
|
|
|
else
|
2015-01-29 22:01:27 -08:00
|
|
|
if (user.profile.username)
|
|
|
|
a(href='/' + user.profile.username)
|
|
|
|
img.profile-picture.float-right(src='#{user.gravatar(60)}')
|
|
|
|
else
|
|
|
|
a(href='/account')
|
|
|
|
img.profile-picture.float-right(src='#{user.gravatar(60)}')
|