From 1a70ff9d92ad1a20bbe6ee208d30f9122d7bd34b Mon Sep 17 00:00:00 2001 From: Jeff Date: Sat, 12 Aug 2017 18:19:49 -0400 Subject: [PATCH 1/2] add captcha to placebo template --- contrib/templates/placebo/postform.mustache | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/contrib/templates/placebo/postform.mustache b/contrib/templates/placebo/postform.mustache index 2aa17bd..d21f2f9 100644 --- a/contrib/templates/placebo/postform.mustache +++ b/contrib/templates/placebo/postform.mustache @@ -24,6 +24,25 @@ Comment + {{^DisableCaptcha}} + + + {{#i18n.Translations}}{{captcha}}{{/i18n.Translations}} + + + captcha + + + + + {{#i18n.Translations}}{{solution}}{{/i18n.Translations}} + + + + + + + {{/DisableCaptcha}} {{#files}} File From e87005a178b07a001216e38add8cab82df7035e9 Mon Sep 17 00:00:00 2001 From: Jeff Date: Sat, 12 Aug 2017 18:22:44 -0400 Subject: [PATCH 2/2] make captcha readable --- contrib/static/krane.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/static/krane.css b/contrib/static/krane.css index 5132fb6..56f96cb 100644 --- a/contrib/static/krane.css +++ b/contrib/static/krane.css @@ -441,3 +441,7 @@ background-repeat: repeat; white-space: pre-line; word-break: break-word; } + +#captcha_img { + background-color: white; +}