From aed72f52dcb7ae85ba95a7891e9f7068a2d1367e Mon Sep 17 00:00:00 2001 From: reality Date: Fri, 4 Mar 2016 17:18:35 +0000 Subject: [PATCH] fix flashy --- modules/flashy/pages.js | 2 +- views/flashy/flashy.jade | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/flashy/pages.js b/modules/flashy/pages.js index 6b46ba5..9771503 100644 --- a/modules/flashy/pages.js +++ b/modules/flashy/pages.js @@ -10,7 +10,7 @@ var pages = function(dbot) { res.render('flashy', { 'name': dbot.config.name, 'colour': colour, - 'text': req.params.text + 'text': decodeURIComponent(req.params.text) }); } }; diff --git a/views/flashy/flashy.jade b/views/flashy/flashy.jade index 232b3c3..e472ca6 100644 --- a/views/flashy/flashy.jade +++ b/views/flashy/flashy.jade @@ -1,4 +1,3 @@ -doctype html html(lang='en') head meta(charset='utf-8') @@ -6,4 +5,6 @@ html(lang='en') title #{name} web interface body div.container - blink [ span.flash(style='color: #'+colour+';') #{text} span ] + blink [ + span.flash(style='color: #'+colour+';') #{text} + span ]