update nonprofit files and delete old commented code
This commit is contained in:
@@ -64,23 +64,6 @@ 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;
|
||||
// });
|
||||
//
|
||||
// if (hasShownInterest.length === 0) {
|
||||
// buttonActive = true;
|
||||
// }
|
||||
// }
|
||||
|
||||
res.render('nonprofits/show', {
|
||||
dashedName: dashedNameFull,
|
||||
title: nonprofit.name,
|
||||
|
Reference in New Issue
Block a user