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
var key = req.params.key.toLowerCase();
if(dbot.db.quoteArrs.hasOwnProperty(key)) {
res.render('quotes', { 'quotes': dbot.db.quoteArrs[key] });
res.render('quotes', { 'quotes': dbot.db.quoteArrs[key]});
} else {
res.render('error', { 'message': 'No quotes under that key.' });
}
});
app.get('/css', function(req, res) {
res.render('styles.css', { 'layout': false });
});
app.listen(443);
return {

View File

@ -2,7 +2,7 @@
html(lang: 'en')
head
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
body
div#title Depressionbot web interface