make bonfire view consistent with other challenge views and make codemirror height larger and result code mirror pane read only with no cursor
This commit is contained in:
@@ -1,8 +1,19 @@
|
||||
var _ = require('lodash'),
|
||||
debug = require('debug')('freecc:cntr:challenges'),
|
||||
Challenge = require('./../models/Challenge');
|
||||
|
||||
/**
|
||||
* Bonfire controller
|
||||
*/
|
||||
module.exports = {
|
||||
index : function(req,res) {
|
||||
res.render('bonfire/bonfire.jade');
|
||||
}
|
||||
};
|
||||
exports.index = function(req, res) {
|
||||
Challenge.find({}, null, { sort: { challengeNumber: 1 } }, function(err, c) {
|
||||
if (err) {
|
||||
debug('Challenge err: ', err);
|
||||
next(err);
|
||||
}
|
||||
res.render('bonfire/bonfire.jade', {
|
||||
challenges: c,
|
||||
cc: req.user ? req.user.challengesHash : undefined
|
||||
});
|
||||
});
|
||||
};
|
Reference in New Issue
Block a user