diff --git a/controllers/challenges.js b/controllers/challenges.js index 1a60c0accf..95d1a6e950 100644 --- a/controllers/challenges.js +++ b/controllers/challenges.js @@ -12,7 +12,7 @@ exports.returnChallenge = function(req, res) { video: c.video, time: c.time, steps: c.steps, - challenges: Challenge.find({}) + cc: req.user.challengesCompleted }); }); }; \ No newline at end of file diff --git a/public/css/styles.less b/public/css/styles.less index 68be8e87d0..b0f8b0099d 100644 --- a/public/css/styles.less +++ b/public/css/styles.less @@ -213,4 +213,8 @@ ul { .button-container { height: 120px; +} + +.strikethrough { + text-decoration: line-through; } \ No newline at end of file diff --git a/views/partials/challenges.jade b/views/partials/challenges.jade index 95636d46b4..b10632eea6 100644 --- a/views/partials/challenges.jade +++ b/views/partials/challenges.jade @@ -1,9 +1,10 @@ .panel.panel-primary .panel-heading Challenges .panel-body + = cc ol(start='0') li - a(href="/challenges/0") A One-minute Introduction to Free Code Camp + a(href="/challenges/0", class="#{ cc === 3 ? 'strikethrough' : '' }") A One-minute Introduction to Free Code Camp li a(href="/challenges/1") Enter the Free Code Camp Chat Room li