fix some linting issues
This commit is contained in:
@ -43,6 +43,7 @@
|
||||
"csso": "~1.3.11",
|
||||
"dateformat": "~1.0.11",
|
||||
"debug": "~2.1.0",
|
||||
"dedent": "^0.4.0",
|
||||
"dotenv": "~0.4.0",
|
||||
"errorhandler": "~1.3.0",
|
||||
"eslint": "^1.1.0",
|
||||
|
@ -1,4 +1,5 @@
|
||||
import _ from 'lodash';
|
||||
import dedent from 'dedent';
|
||||
import moment from 'moment';
|
||||
import { Observable, Scheduler } from 'rx';
|
||||
import assign from 'object.assign';
|
||||
@ -208,10 +209,12 @@ module.exports = function(app) {
|
||||
debug('next challengeName', nextChallengeName);
|
||||
if (!nextChallengeName || nextChallengeName === firstChallenge) {
|
||||
req.flash('errors', {
|
||||
msg: 'Once you have completed all of our challenges, you should '+
|
||||
'join our <a href=\"//gitter.im/freecodecamp/HalfWayClub\"'+
|
||||
'target=\"_blank\">Half Way Club</a> and start getting '+
|
||||
'ready for our nonprofit projects.'
|
||||
msg: dedent`
|
||||
Once you have completed all of our challenges, you should
|
||||
join our <a href=\"//gitter.im/freecodecamp/HalfWayClub\"
|
||||
target=\"_blank\">Half Way Club</a> and start getting
|
||||
ready for our nonprofit projects.
|
||||
`.split('\n').join(' ')
|
||||
});
|
||||
return res.redirect('/map');
|
||||
}
|
||||
|
@ -64,21 +64,22 @@ module.exports = function(app) {
|
||||
return res.redirect('../nonprofit/' + dashedNameFull);
|
||||
}
|
||||
|
||||
//We need to create logic that verifies completion. Defaulting to false for now.
|
||||
//var buttonActive = false;
|
||||
//if (
|
||||
// req.user &&
|
||||
// req.user.completedCoursewares.length > 63
|
||||
//) {
|
||||
// var hasShownInterest =
|
||||
// nonprofit.interestedCampers.filter(function(user) {
|
||||
// return user.username === req.user.username;
|
||||
// });
|
||||
// We need to create logic that verifies completion.
|
||||
// Defaulting to false for now.
|
||||
// var buttonActive = false;
|
||||
// if (
|
||||
// req.user &&
|
||||
// req.user.completedCoursewares.length > 63
|
||||
// ) {
|
||||
// var hasShownInterest =
|
||||
// nonprofit.interestedCampers.filter(function(user) {
|
||||
// return user.username === req.user.username;
|
||||
// });
|
||||
//
|
||||
// if (hasShownInterest.length === 0) {
|
||||
// buttonActive = true;
|
||||
// if (hasShownInterest.length === 0) {
|
||||
// buttonActive = true;
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
||||
res.render('nonprofits/show', {
|
||||
dashedName: dashedNameFull,
|
||||
|
Reference in New Issue
Block a user