2015-01-26 19:02:22 +00:00
|
|
|
.navbar-header
|
2015-02-26 21:22:12 +00: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 19:02:22 +00:00
|
|
|
a.navbar-brand(href='/')
|
2015-01-21 22:12:19 +00: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 19:02:22 +00:00
|
|
|
.collapse.navbar-collapse
|
|
|
|
ul.nav.navbar-nav.navbar-right.hamburger-dropdown
|
2015-02-20 00:33:08 +00:00
|
|
|
li
|
|
|
|
a(href='/challenges') Challenges
|
|
|
|
li
|
|
|
|
a(href='/chat') Chat
|
|
|
|
li
|
2015-03-04 03:55:04 +00:00
|
|
|
a(href='/stories') News
|
2014-12-30 19:40:37 +00:00
|
|
|
li
|
2015-01-26 19:02:22 +00:00
|
|
|
a(href='/bonfires') Bonfires
|
2014-12-30 19:40:37 +00:00
|
|
|
if !user
|
2015-01-26 19:02:22 +00:00
|
|
|
li
|
|
|
|
li
|
|
|
|
a.btn.signup-btn.signup-btn-nav(href='/login') Sign in
|
2014-12-30 19:40:37 +00:00
|
|
|
else
|
2015-01-26 19:02:22 +00:00
|
|
|
li
|
2015-02-20 00:33:08 +00:00
|
|
|
if (user.profile.username)
|
|
|
|
a(href='/' + user.profile.username) [ #{user.points} ]
|
|
|
|
else
|
|
|
|
a(href='/account') [ #{user.points} ]
|
2014-12-31 04:26:12 +00:00
|
|
|
.hidden-xs
|
2015-01-26 19:02:22 +00:00
|
|
|
if user.profile.picture
|
2015-01-30 06:01:27 +00: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 19:02:22 +00:00
|
|
|
else
|
2015-01-30 06:01:27 +00: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)}')
|