add zipline and basejump to portfolio view, and bonfires with solutions(not yet writing name to bonfireCompletion record on user

This commit is contained in:
Michael Q Larson
2015-04-05 00:01:51 -07:00
parent c9b4a90f57
commit 9d746f7d49
7 changed files with 134 additions and 3191 deletions

View File

@@ -304,7 +304,9 @@ exports.returnUser = function(req, res, next) {
user.currentStreak = user.currentStreak || 1;
user.longestStreak = user.longestStreak || 1;
challenges = user.completedCoursewares.filter(function ( obj ) {
return !!obj.solution;
});
res.render('account/show', {
title: 'Camper ' + user.profile.username + '\'s portfolio',
username: user.profile.username,
@@ -327,7 +329,8 @@ exports.returnUser = function(req, res, next) {
website3Link: user.portfolio.website3Link,
website3Title: user.portfolio.website3Title,
website3Image: user.portfolio.website3Image,
ch: user.challengesHash,
challenges: challenges,
bonfires: user.completedBonfires,
calender: data,
moment: moment,
longestStreak: user.longestStreak + (user.longestStreak === 1 ? " day" : " days"),