Css should work easy now.

This commit is contained in:
Samuel Clements 2011-11-08 18:52:59 +00:00
parent 68a450edb4
commit e0dd59ac7d
3 changed files with 2 additions and 6 deletions

View File

@ -24,16 +24,12 @@ var webInterface = function(dbot) {
// Lists the quotes in a category // Lists the quotes in a category
var key = req.params.key.toLowerCase(); var key = req.params.key.toLowerCase();
if(dbot.db.quoteArrs.hasOwnProperty(key)) { if(dbot.db.quoteArrs.hasOwnProperty(key)) {
res.render('quotes', { 'quotes': dbot.db.quoteArrs[key] }); res.render('quotes', { 'quotes': dbot.db.quoteArrs[key]});
} else { } else {
res.render('error', { 'message': 'No quotes under that key.' }); res.render('error', { 'message': 'No quotes under that key.' });
} }
}); });
app.get('/css', function(req, res) {
res.render('styles.css', { 'layout': false });
});
app.listen(443); app.listen(443);
return { return {

View File

@ -2,7 +2,7 @@
html(lang: 'en') html(lang: 'en')
head head
meta(charset: 'utf-8') meta(charset: 'utf-8')
link(rel: 'stylesheet', type: 'text/css', href: '/css') link(rel: 'stylesheet', type: 'text/css', href: '/styles.css')
title Depressionbot web interface title Depressionbot web interface
body body
div#title Depressionbot web interface div#title Depressionbot web interface