panel debug

This commit is contained in:
jysperm
2014-09-16 15:24:58 +08:00
parent 1459260586
commit a177c115b8
12 changed files with 121 additions and 114 deletions

View File

@@ -62,10 +62,11 @@ exports.run = ->
app.use (req, res, next) ->
res.locals.app = app
res.locals.config = app.config
res.locals.pluggable = app.pluggable
res.locals.hooks = app.pluggable.hooks
res.locals.t = res.t = app.i18n.getTranslator req.cookies.language
res.locals.selectHook = (name) ->
return app.pluggable.selectHook req.account, name
language = req.cookies.language ? config.i18n.default_language
timezone = req.cookies.timezone ? config.i18n.default_timezone