start refactoring challenge map
parent
5380a9ea74
commit
d1c4567790
|
@ -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
|
||||
}
|
||||
|
|
|
@ -19,8 +19,6 @@ 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:
|
||||
|
@ -31,8 +29,7 @@ block content
|
|||
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
|
||||
a(href='#' + challengeBlock.dashedName)= challengeBlock.name
|
||||
|
||||
.row
|
||||
.col-xs-12.col-sm-8.col-sm-offset-2.negative-28
|
||||
|
@ -59,7 +56,7 @@ block content
|
|||
|
||||
for challengeBlock in challengeList
|
||||
.row
|
||||
a(href='#' name=challengeBlock.name)
|
||||
a(href='#' name=challengeBlock.dashedName)
|
||||
.spacer.negative-55
|
||||
|
||||
.row
|
||||
|
|
Loading…
Reference in New Issue