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,
time: c.time,
steps: c.steps,
challenges: Challenge.find({})
cc: req.user.challengesCompleted
});
});
};

View File

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

View File

@ -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