diff --git a/controllers/resources.js b/controllers/resources.js index 30bf362f5da..eabb05f87f5 100644 --- a/controllers/resources.js +++ b/controllers/resources.js @@ -76,8 +76,13 @@ module.exports = { if (!challengeMapForDisplay) { challengeMapForDisplay = {}; Object.keys(challengeMap).forEach(function(key) { + //TODO get ratio of completed to uncompleted for each section + //challengeMap[key].challenges.forEach(function(challenge){ + // + //} challengeMapForDisplay[key] = { name: challengeMap[key].name, + dashedName: challengeMap[key].name.replace(/\s/g, '-'), challenges: challengeMap[key].challenges, completedCount: challengeMap[key].challenges //ToDo count number of uncompleted challenges } diff --git a/views/challengeMap/show.jade b/views/challengeMap/show.jade index 6cab45f6bcb..ff326cec67a 100644 --- a/views/challengeMap/show.jade +++ b/views/challengeMap/show.jade @@ -19,47 +19,44 @@ block content span.text-primary #{daysRunning}   | days ago. .spacer - .well - h2.text-center Curriculum Overview - .row - .col-xs-12.col-sm-8.col-sm-offset-2 - h3 800 Hours of Practice: - ol - for challengeBlock in challengeList - .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 - a(href='#' + challengeBlock.name)= challengeBlock.name - = challengeBlock.challenges.length + .row + .col-xs-12.col-sm-8.col-sm-offset-2 + h3 800 Hours of Practice: + ol + for challengeBlock in challengeList + .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 + a(href='#' + challengeBlock.dashedName)= challengeBlock.name + .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 - .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 - li.large-p.negative-10 First 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 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 + .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 + li.large-p.negative-10 First 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 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 .row - a(href='#' name=challengeBlock.name) + a(href='#' name=challengeBlock.dashedName) .spacer.negative-55 .row