update nonprofit files and delete old commented code

This commit is contained in:
Quincy Larson
2015-10-21 21:30:47 -07:00
parent 286d0c06c4
commit 1dc0e868b9
2 changed files with 7 additions and 57 deletions

View File

@@ -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,