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