3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 14:29:29 +01:00

pass module links to each page

This commit is contained in:
reality 2013-12-12 19:19:44 +00:00
parent eb348848e6
commit 5e1dcd4d30

View File

@ -81,7 +81,8 @@ var webInterface = function(dbot) {
// Render with express.js
_.extend(one, {
'name': dbot.config.name,
'user': req.user
'user': req.user,
'modules': this.indexLinks
});
resp.render(this.module + '/' + view, one, two);
}).bind(this);