From 6352a6dc9aaa94f88e91f434f97e47d3b6853ded Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sun, 7 Aug 2022 12:58:49 -0500 Subject: [PATCH] Add button to raise bogus error, for testing email alerts --- .../templates/settings/email/configure.mako | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/tailbone/templates/settings/email/configure.mako b/tailbone/templates/settings/email/configure.mako index 1e2e86a0..31da4f8e 100644 --- a/tailbone/templates/settings/email/configure.mako +++ b/tailbone/templates/settings/email/configure.mako @@ -16,6 +16,57 @@ + + % if request.has_perm('errors.bogus'): +

Testing

+
+ + +

+ You can raise a "bogus" error to test if/how it generates email: +

+ + {{ raisingBogusError ? "Working, please wait..." : "Raise Bogus Error" }} + +
+ +
+ + % endif + + +<%def name="modify_this_page_vars()"> + ${parent.modify_this_page_vars()} + % if request.has_perm('errors.bogus'): + + % endif