diff --git a/app.js b/app.js index fb70d170c8..a6391208cd 100644 --- a/app.js +++ b/app.js @@ -4,7 +4,8 @@ var modules = { posts: require('./src/posts.js'), templates: require('./src/templates.js'), webserver: require('./src/webserver.js'), - websockets: require('./src/websockets.js') + websockets: require('./src/websockets.js'), + fs: require('fs') } DEVELOPMENT = true; @@ -13,15 +14,11 @@ var modules = { global.configuration = {}; global.modules = modules; -// change this to = null when auth module is complete -// global.uid = 1; - (function(config) { config['ROOT_DIRECTORY'] = __dirname; modules.templates.init(); - // modules.webserver.init(); modules.websockets.init(); diff --git a/public/css/style.less b/public/css/style.less index 06d0cda1e8..19fc47425e 100644 --- a/public/css/style.less +++ b/public/css/style.less @@ -168,4 +168,11 @@ footer.footer { .inline-block; .pointer; } +} + +.none { + display: none !important; +} +.block { + display: block !important; } \ No newline at end of file diff --git a/public/templates/footer.tpl b/public/templates/footer.tpl index 08fb9d2fb7..dd3de05b00 100644 --- a/public/templates/footer.tpl +++ b/public/templates/footer.tpl @@ -45,7 +45,6 @@ }); socket.emit('api:user.get', { fields: ['username', 'picture'] }); socket.on('api:user.get', function(data) { - console.log(data); if (data.uid > 0) { var gravatar = document.createElement('img'), name = document.createElement('span') diff --git a/public/templates/login.tpl b/public/templates/login.tpl index 8cf6aca923..304b8bd180 100644 --- a/public/templates/login.tpl +++ b/public/templates/login.tpl @@ -1,6 +1,6 @@