Add show all challenges button to all challenge views and refactor bonfire to use same modal and button ids

This commit is contained in:
Michael Q Larson
2015-03-29 17:09:12 -07:00
parent f0ae47dcf2
commit aa01a896a5
9 changed files with 63 additions and 35 deletions

View File

@ -11,6 +11,7 @@ var _ = require('lodash'),
*/
exports.showAllCoursewares = function(req, res) {
console.log('i made it!');
var completedCoursewares = req.user.completedCoursewares.map(function(elem) {
return elem._id;
});