Work on index page

This commit is contained in:
calzoneman 2014-01-20 17:52:36 -06:00
parent 24fcce3f87
commit 7307c9c82e
3 changed files with 71 additions and 1 deletions

View file

@ -101,9 +101,11 @@ function handleIndex(req, res) {
if (req.cookies.auth) {
loginName = req.cookies.auth.split(':')[0];
}
sendJade(res, 'index', {
loggedIn: loginName !== false,
loginName: loginName
loginName: loginName,
channels: Server.getServer().packChannelList(true)
});
}