conditional logic showing links to forum and chatroom

This commit is contained in:
Michael Q Larson
2014-12-21 17:52:17 -08:00
parent 46f217f548
commit 14174ee453
2 changed files with 19 additions and 8 deletions

View File

@ -15,14 +15,15 @@ block content
.btn.btn-primary.btn-big.btn-block.completed-challenge I've completed this challenge
.ten-pixel-break
.btn.btn-success.btn-large.btn-block.skip-challenge I want to skip this challenge for now
.panel-footer.text-center
span Need a break? Check out our: 
a(href="https://gitter.im/FreeCodeCamp/FreeCodeCamp", target="_blank") Chat Room
|  , 
a(href="http://blog.freecodecamp.com", target="_blank") Blog
|  , or 
a(href="http://forum.freecodecamp.com", target="_blank") Forum
| .
- if (cc[2] > 0)
.panel-footer.text-center
span Need a break? Check out our: 
a(href="https://gitter.im/FreeCodeCamp/FreeCodeCamp", target="_blank") Chat Room
|  , 
a(href="http://blog.freecodecamp.com", target="_blank") Blog
|  , or 
a(href="http://forum.freecodecamp.com", target="_blank") Forum
| .
#complete-dialog.modal
.modal-dialog.animated.zoomIn.fast-animation
.modal-content

View File

@ -32,11 +32,21 @@
a(href='https://gitter.im/FreeCodeCamp/FreeCodeCamp', target='_blank')
span.ion-coffee
| Chat Room
- else
li.hamburger.disabled
a(href='https://gitter.im/FreeCodeCamp/FreeCodeCamp', target='_blank')
span.ion-coffee
| Chat Room (do Challenge 1 first)
- if (cc[2] > 0)
li.hamburger
a(href='http://forum.freecodecamp.com/', target='_blank')
span.ion-planet
| Forum
- else
li.hamburger.disabled
a(href='http://forum.freecodecamp.com/', target='_blank')
span.ion-planet
| Forum (do Challenge 2 first)
li.hamburger
a(href='/account')
span.ion-person