improve the footer

This commit is contained in:
Michael Q Larson
2015-04-07 00:11:31 -07:00
parent 840930d967
commit bd7c5310b1
11 changed files with 196 additions and 70 deletions

View File

@ -87,7 +87,7 @@ module.exports = {
res.redirect('http://gitter.im/freecodecamp/freecodecamp');
} else {
res.render('resources/chat', {
title: "Enter Free Code Camp's Chat Rooms"
title: "Watch us code live on Twitch.tv"
});
}
},
@ -98,6 +98,12 @@ module.exports = {
});
},
twitch: function twitch(req, res) {
res.render('resources/twitch', {
title: "Enter Free Code Camp's Chat Rooms"
});
},
githubCalls: function(req, res) {
var githubHeaders = {headers: {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1521.3 Safari/537.36'}, port:80 };
request('https://api.github.com/repos/freecodecamp/freecodecamp/pulls?client_id=' + secrets.github.clientID + '&client_secret=' + secrets.github.clientSecret, githubHeaders, function(err, status1, pulls) {