conditionally striking through
This commit is contained in:
		@@ -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
 | 
			
		||||
        });
 | 
			
		||||
    });
 | 
			
		||||
};
 | 
			
		||||
@@ -213,4 +213,8 @@ ul {
 | 
			
		||||
 | 
			
		||||
.button-container {
 | 
			
		||||
  height: 120px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.strikethrough {
 | 
			
		||||
  text-decoration: line-through;
 | 
			
		||||
}
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user