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
|
// 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 {
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user