forked from GitHub/dbot
Css should work easy now.
This commit is contained in:
parent
68a450edb4
commit
e0dd59ac7d
@ -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 {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user