2015-04-03 20:05:53 -07:00
extends ../layout
block content
2015-08-18 23:07:06 -07:00
.bg-danger.default-border-radius
p We are running emergency server maintenance. Your account and challenge completion will not be saved until this message goes away. Sorry about the inconvenience and thank you for your understanding.
2015-04-28 22:29:59 -07:00
.panel.panel-info
.panel-heading.text-center
h1 Challenge Map
.panel-body
2015-06-04 23:50:59 -07:00
if (Math.random() > 0.999)
2015-04-28 22:29:59 -07:00
img.img-responsive.img-center.border-radius-5(src='https://s3.amazonaws.com/freecodecamp/wide-social-banner-dino.png')
2015-06-04 23:50:59 -07:00
audio(autoplay src='https://s3.amazonaws.com/freecodecamp/t-rex-roar.mp3')
2015-04-28 22:29:59 -07:00
else
img.img-responsive.img-center.border-radius-5(src='https://s3.amazonaws.com/freecodecamp/wide-social-banner.png')
2015-05-24 23:51:56 -07:00
.col-xs-12.col-md-10.col-md-offset-1
2015-04-28 22:29:59 -07:00
h2.text-center
span.text-primary #{camperCount}  
| campers have joined our community
br
| since we launched  
span.text-primary #{daysRunning}  
| days ago.
2015-05-24 23:51:56 -07:00
.spacer
2015-05-31 11:27:16 -07:00
.row
.col-xs-12.col-sm-8.col-sm-offset-2
h3 800 Hours of Practice:
ol
2015-08-09 22:14:31 -07:00
for challengeBlock in blocks
2015-05-25 17:09:49 -07:00
.row
2015-06-01 23:27:33 -07:00
if (user)
2015-08-09 22:14:31 -07:00
if (challengeBlock.completed === 100)
2015-06-01 23:27:33 -07:00
.hidden-xs.col-sm-3.col-md-2.text-primary.ion-checkmark-circled.padded-ionic-icon.text-center.large-p.negative-10
2015-06-01 23:34:14 -07:00
.col-xs-12.col-sm-9.col-md-10
li.large-p.faded.negative-10
a(href='#' + challengeBlock.dashedName)= challengeBlock.name
2015-06-01 23:27:33 -07:00
else
.hidden-xs.col-sm-3.col-md-2
.progress.progress-bar-padding.text-center.thin-progress-bar
2015-08-09 22:14:31 -07:00
.progress-bar(role='progressbar', aria-valuenow=(challengeBlock.completed), aria-valuemin='0', aria-valuemax='100', style='width: ' + challengeBlock.completed + '%;')
2015-06-01 23:34:14 -07:00
.col-xs-12.col-sm-9.col-md-10
li.large-p.negative-10
a(href='#' + challengeBlock.dashedName)= challengeBlock.name
2015-06-01 23:27:33 -07:00
else
2015-07-12 11:36:10 -07:00
.hidden-xs.col-sm-3.col-md-2
2015-06-01 23:27:33 -07:00
span.negative-10
2015-06-01 23:34:14 -07:00
.col-xs-12.col-sm-9.col-md-10
li.large-p.negative-10
a(href='#' + challengeBlock.dashedName)= challengeBlock.name
2015-05-31 11:27:16 -07:00
.row
.col-xs-12.col-sm-8.col-sm-offset-2.negative-28
h3 800 Hours of  
a(href="/nonprofits/directory") Real World Work Experience
| :
ol
.row
.hidden-xs.col-sm-3.col-md-2.ion-locked.padded-ionic-icon.text-center.large-p.negative-10
.col-xs-12.col-sm-9.col-md-10
li.large-p.negative-10 100-hour Nonprofit Project
.row
.hidden-xs.col-sm-3.col-md-2.ion-locked.padded-ionic-icon.text-center.large-p.negative-10
.col-xs-12.col-sm-9.col-md-10
2015-05-31 13:01:53 -07:00
li.large-p.negative-10 200-hour Nonprofit Project #1
2015-05-31 11:27:16 -07:00
.row
.hidden-xs.col-sm-3.col-md-2.ion-locked.padded-ionic-icon.text-center.large-p.negative-10
.col-xs-12.col-sm-9.col-md-10
2015-05-31 13:01:53 -07:00
li.large-p.negative-10 200-hour Nonprofit Project #2
2015-05-31 11:27:16 -07:00
.row
.hidden-xs.col-sm-3.col-md-2.ion-locked.padded-ionic-icon.text-center.large-p.negative-10
.col-xs-12.col-sm-9.col-md-10
li.large-p.negative-10 300-hour Nonprofit Project
2015-05-31 12:32:09 -07:00
hr
2015-04-03 20:50:27 -07:00
2015-08-09 22:14:31 -07:00
for challengeBlock in blocks
2015-05-31 02:01:55 -07:00
.row
2015-05-31 11:27:16 -07:00
a(href='#' name=challengeBlock.dashedName)
2015-05-31 02:01:55 -07:00
.spacer.negative-55
.row
.col-xs-12.col-sm-8.col-sm-offset-2
h3 #{challengeBlock.name}
2015-05-25 17:09:49 -07:00
.row
.col-xs-12
2015-05-31 02:01:55 -07:00
ol
for challenge in challengeBlock.challenges
2015-08-09 22:14:31 -07:00
if challenge.completed
2015-05-31 02:01:55 -07:00
.row
.hidden-xs.col-sm-3.col-md-2.text-primary.ion-checkmark-circled.padded-ionic-icon.text-center.large-p.negative-10
.col-xs-12.col-sm-9.col-md-10
li.faded.large-p.negative-10
2015-08-18 15:21:26 -07:00
a(href="/challenges/#{challenge.dashedName}")
span.capitalize= challenge.type + ': '
span= challenge.title
2015-05-31 02:01:55 -07:00
else
.row
.hidden-xs.col-sm-3.col-md-2
span.negative-10
.col-xs-12.col-sm-9.col-md-10
li.large-p.negative-10
2015-08-18 15:21:26 -07:00
a(href="/challenges/#{challenge.dashedName}")
span.capitalize= challenge.type + ': '
span= challenge.title
2015-04-23 23:46:58 -07:00
2015-06-24 07:06:40 -07:00
//#announcementModal.modal(tabindex='-1')
// .modal-dialog.animated.fadeInUp.fast-animation
// .modal-content
// .modal-header.challenge-list-header Add us to your LinkedIn profile
// a.close.closing-x(href='#', data-dismiss='modal', aria-hidden='true') ×
// .modal-body
// h3.text-left LinkedIn now recognizes Free Code Camp as a university.
// img.img-responsive.img-center(src='https://www.evernote.com/l/AHTzkHwtg-BHj57bqqDL7WFF8WgrI5V8cxwB/image.png')
// h3.text-left It takes less than a minute to add Free Code Camp to your LinkedIn profile.
// a.btn.btn-lg.btn-info.btn-block(name='_csrf', value=_csrf, aria-hidden='true', href='/linkedin', target='_blank') Show me how to do this
// a.btn.btn-lg.btn-primary.btn-block(href='#', data-dismiss='modal', aria-hidden='true') Thanks for the heads-up
//script.
// $(document).ready(function () {
// if (!localStorage || !localStorage.linkedIn) {
// $('#announcementModal').modal('show');
// localStorage.linkedIn = "true";
// }
// });