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