improve wikis with hotkey and update the flash to allow links

This commit is contained in:
Michael Q Larson
2015-04-05 17:35:08 -07:00
parent 32f9a61d5d
commit ef57ec58c2
5 changed files with 27 additions and 22 deletions

View File

@@ -64,8 +64,8 @@ exports.returnNextWiki = function(req, res, next) {
}
wiki = wiki.pop();
if (wiki === undefined) {
req.flash('errors', {
msg: "It looks like you've read all our current Wiki entries. Let us know if you'd like to contribute to our wiki!"
req.flash('success', {
msg: "You've read all our current Wiki entries. You can contribute to our Wiki <a href='https://github.com/FreeCodeCamp/freecodecamp/blob/nonprofit-show/seed_data/wikis.json'>here</a>."
});
return res.redirect('../wiki/a-guide-to-our-wiki');
}