fix challenges link when not authenticated

pull/10/head
Michael Q Larson 2014-12-31 17:38:36 -08:00
parent 1aa503e646
commit 2fcc95a9ee
1 changed files with 6 additions and 2 deletions

View File

@ -10,8 +10,12 @@ nav.navbar.navbar-default.navbar-fixed-top.nav-height
img.img-responsive.nav-logo(src='https://s3.amazonaws.com/freecodecamp/freecodecamp_logo.svg')
.collapse.navbar-collapse
ul.nav.navbar-nav.navbar-right
li
a(href='/') Challenges
- if (!cc)
li
a(href='/challenges/0') Challenges
- else
li
a(href='/') Challenges
- if (!cc || (cc && cc[1] < 1))
li
a(href='/challenges/1') Chat