start refactoring challenge map
This commit is contained in:
@ -76,8 +76,13 @@ module.exports = {
|
|||||||
if (!challengeMapForDisplay) {
|
if (!challengeMapForDisplay) {
|
||||||
challengeMapForDisplay = {};
|
challengeMapForDisplay = {};
|
||||||
Object.keys(challengeMap).forEach(function(key) {
|
Object.keys(challengeMap).forEach(function(key) {
|
||||||
|
//TODO get ratio of completed to uncompleted for each section
|
||||||
|
//challengeMap[key].challenges.forEach(function(challenge){
|
||||||
|
//
|
||||||
|
//}
|
||||||
challengeMapForDisplay[key] = {
|
challengeMapForDisplay[key] = {
|
||||||
name: challengeMap[key].name,
|
name: challengeMap[key].name,
|
||||||
|
dashedName: challengeMap[key].name.replace(/\s/g, '-'),
|
||||||
challenges: challengeMap[key].challenges,
|
challenges: challengeMap[key].challenges,
|
||||||
completedCount: challengeMap[key].challenges //ToDo count number of uncompleted challenges
|
completedCount: challengeMap[key].challenges //ToDo count number of uncompleted challenges
|
||||||
}
|
}
|
||||||
|
@ -19,47 +19,44 @@ block content
|
|||||||
span.text-primary #{daysRunning}  
|
span.text-primary #{daysRunning}  
|
||||||
| days ago.
|
| days ago.
|
||||||
.spacer
|
.spacer
|
||||||
.well
|
.row
|
||||||
h2.text-center Curriculum Overview
|
.col-xs-12.col-sm-8.col-sm-offset-2
|
||||||
.row
|
h3 800 Hours of Practice:
|
||||||
.col-xs-12.col-sm-8.col-sm-offset-2
|
ol
|
||||||
h3 800 Hours of Practice:
|
for challengeBlock in challengeList
|
||||||
ol
|
.row
|
||||||
for challengeBlock in challengeList
|
.hidden-xs.col-sm-3.col-md-2
|
||||||
.row
|
span.negative-10
|
||||||
.hidden-xs.col-sm-3.col-md-2
|
.col-xs-12.col-sm-9.col-md-10
|
||||||
span.negative-10
|
li.large-p.negative-10
|
||||||
.col-xs-12.col-sm-9.col-md-10
|
a(href='#' + challengeBlock.dashedName)= challengeBlock.name
|
||||||
li.large-p.negative-10
|
|
||||||
a(href='#' + challengeBlock.name)= challengeBlock.name
|
|
||||||
= challengeBlock.challenges.length
|
|
||||||
|
|
||||||
|
.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
|
.row
|
||||||
.col-xs-12.col-sm-8.col-sm-offset-2.negative-28
|
.hidden-xs.col-sm-3.col-md-2.ion-locked.padded-ionic-icon.text-center.large-p.negative-10
|
||||||
h3 800 Hours of  
|
.col-xs-12.col-sm-9.col-md-10
|
||||||
a(href="/nonprofits/directory") Real World Work Experience
|
li.large-p.negative-10 100-hour Nonprofit Project
|
||||||
| :
|
.row
|
||||||
ol
|
.hidden-xs.col-sm-3.col-md-2.ion-locked.padded-ionic-icon.text-center.large-p.negative-10
|
||||||
.row
|
.col-xs-12.col-sm-9.col-md-10
|
||||||
.hidden-xs.col-sm-3.col-md-2.ion-locked.padded-ionic-icon.text-center.large-p.negative-10
|
li.large-p.negative-10 First 200-hour Nonprofit Project
|
||||||
.col-xs-12.col-sm-9.col-md-10
|
.row
|
||||||
li.large-p.negative-10 100-hour Nonprofit Project
|
.hidden-xs.col-sm-3.col-md-2.ion-locked.padded-ionic-icon.text-center.large-p.negative-10
|
||||||
.row
|
.col-xs-12.col-sm-9.col-md-10
|
||||||
.hidden-xs.col-sm-3.col-md-2.ion-locked.padded-ionic-icon.text-center.large-p.negative-10
|
li.large-p.negative-10 Second 200-hour Nonprofit Project
|
||||||
.col-xs-12.col-sm-9.col-md-10
|
.row
|
||||||
li.large-p.negative-10 First 200-hour Nonprofit Project
|
.hidden-xs.col-sm-3.col-md-2.ion-locked.padded-ionic-icon.text-center.large-p.negative-10
|
||||||
.row
|
.col-xs-12.col-sm-9.col-md-10
|
||||||
.hidden-xs.col-sm-3.col-md-2.ion-locked.padded-ionic-icon.text-center.large-p.negative-10
|
li.large-p.negative-10 300-hour Nonprofit Project
|
||||||
.col-xs-12.col-sm-9.col-md-10
|
|
||||||
li.large-p.negative-10 Second 200-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
|
|
||||||
li.large-p.negative-10 300-hour Nonprofit Project
|
|
||||||
|
|
||||||
for challengeBlock in challengeList
|
for challengeBlock in challengeList
|
||||||
.row
|
.row
|
||||||
a(href='#' name=challengeBlock.name)
|
a(href='#' name=challengeBlock.dashedName)
|
||||||
.spacer.negative-55
|
.spacer.negative-55
|
||||||
|
|
||||||
.row
|
.row
|
||||||
|
Reference in New Issue
Block a user