From f091b2ceb87efe64a69ba121eed20b1de210155d Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Fri, 12 Apr 2013 12:49:33 +0200 Subject: remove loginmenu if logged in --- router.js | 5 ++++- views/test.ejs | 7 +++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/router.js b/router.js index 2913c31..e77766a 100644 --- a/router.js +++ b/router.js @@ -36,7 +36,10 @@ module.exports = function(app) { */ app.get('/test', function(req, res) { - res.render('test', { title: 'test' }); + res.render('test', { + title: 'test', + loggedin: false + }); }); diff --git a/views/test.ejs b/views/test.ejs index 946ebc4..03f85f5 100644 --- a/views/test.ejs +++ b/views/test.ejs @@ -20,6 +20,7 @@