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