diff --git a/app.js b/app.js index b9759de5bc..96b367830c 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,9 +14,6 @@ var modules = { global.configuration = {}; global.modules = modules; -// change this to = null when auth module is complete -// global.uid = 1; - process.on('uncaughtException', function(err) { // handle the error safely @@ -28,7 +26,6 @@ process.on('uncaughtException', function(err) { 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 44079ba5a3..999af998d2 100644 --- a/public/css/style.less +++ b/public/css/style.less @@ -9,6 +9,14 @@ zoom: 1; } +.none { + display: none; +} + +.block { + display: block; +} + @media (min-width: 979px) { body { padding-top: 60px; @@ -166,13 +174,13 @@ footer.footer { li { vertical-align: top; - .inline-block; + background: transparent; + .none; .pointer; &.google { width: 202px; height: 32px; - background: transparent; background-image: url('../images/google_login.png'); &:hover { @@ -183,5 +191,15 @@ footer.footer { background-position-x: -535px; } } + + &.twitter { + width: 158px; + height: 28px; + background-image: url('../images/twitter_login.png'); + } + + &.active { + .inline-block; + } } } \ No newline at end of file diff --git a/public/templates/login.tpl b/public/templates/login.tpl index c8592905c0..6f5bf0a752 100644 --- a/public/templates/login.tpl +++ b/public/templates/login.tpl @@ -1,6 +1,6 @@