Factor out $('title') to a re-usable variable to make the linter happy and remove old database lookup based on old challenge architecture.

This commit is contained in:
terakilobyte
2015-04-24 15:53:22 -04:00
parent 79ff3631df
commit 096edd553b

View File

@ -8,7 +8,6 @@ var async = require('async'),
Nonprofit = require('./../models/Nonprofit'),
Comment = require('./../models/Comment'),
resources = require('./resources.json'),
steps = resources.steps,
secrets = require('./../config/secrets'),
bonfires = require('../seed_data/bonfires.json'),
nonprofits = require('../seed_data/nonprofits.json'),
@ -186,19 +185,11 @@ module.exports = {
return next(err);
}
// todo is this necessary anymore?
User.count({'points': {'$gt': 53}}, function (err, all) {
if (err) {
debug('User err: ', err);
return next(err);
}
res.render('resources/learn-to-code', {
title: 'About Free Code Camp',
daysRunning: daysRunning,
c3: numberWithCommas(c3),
announcements: announcements
});
res.render('resources/learn-to-code', {
title: 'About Free Code Camp',
daysRunning: daysRunning,
c3: numberWithCommas(c3),
announcements: announcements
});
});
},