Fixed bonfire to allow users to enter contractions

This commit is contained in:
Nathan Leniz
2015-01-26 12:30:04 -05:00
parent c20aa1697c
commit ead9fe56d1
5 changed files with 28 additions and 21 deletions

View File

@@ -12,7 +12,23 @@ var highestBonfireNumber = 2;
exports.index = function(req, res) {
res.render('bonfire/bonfire.jade', {
title: 'Learn to code with Bonfire'
title: 'Learn to code with Bonfire',
completedWith: null,
title: null,
difficulty: null,
brief: null,
details: null,
tests: null,
challengeSeed: null,
challengeEntryPoint: null,
cc: req.user ? req.user.bonfiresHash : undefined,
points: req.user ? req.user.points : undefined,
verb: resources.randomVerb(),
phrase: resources.randomPhrase(),
compliment: resources.randomCompliment(),
bonfires: [],
bonfireHash: "test"
});
Bonfire.find({}, null, { sort: { difficulty: 1 } }, function(err, c) {