conditional logic showing links to forum and chatroom
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user