conditionally striking through

This commit is contained in:
Michael Q Larson
2014-11-06 23:20:20 -08:00
parent ca0c71b77f
commit ce07e9d188
3 changed files with 7 additions and 2 deletions

View File

@ -12,7 +12,7 @@ exports.returnChallenge = function(req, res) {
video: c.video, video: c.video,
time: c.time, time: c.time,
steps: c.steps, steps: c.steps,
challenges: Challenge.find({}) cc: req.user.challengesCompleted
}); });
}); });
}; };

View File

@ -214,3 +214,7 @@ ul {
.button-container { .button-container {
height: 120px; height: 120px;
} }
.strikethrough {
text-decoration: line-through;
}

View File

@ -1,9 +1,10 @@
.panel.panel-primary .panel.panel-primary
.panel-heading Challenges .panel-heading Challenges
.panel-body .panel-body
= cc
ol(start='0') ol(start='0')
li 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 li
a(href="/challenges/1") Enter the Free Code Camp Chat Room a(href="/challenges/1") Enter the Free Code Camp Chat Room
li li