3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-23 12:29:26 +01:00

fix flashy

This commit is contained in:
reality 2016-03-04 17:18:35 +00:00
parent b9064302ba
commit aed72f52dc
2 changed files with 4 additions and 3 deletions

View File

@ -10,7 +10,7 @@ var pages = function(dbot) {
res.render('flashy', { res.render('flashy', {
'name': dbot.config.name, 'name': dbot.config.name,
'colour': colour, 'colour': colour,
'text': req.params.text 'text': decodeURIComponent(req.params.text)
}); });
} }
}; };

View File

@ -1,4 +1,3 @@
doctype html
html(lang='en') html(lang='en')
head head
meta(charset='utf-8') meta(charset='utf-8')
@ -6,4 +5,6 @@ html(lang='en')
title #{name} web interface title #{name} web interface
body body
div.container div.container
blink [ span.flash(style='color: #'+colour+';') #{text} span ] blink [
span.flash(style='color: #'+colour+';') #{text}
span ]