From f04b4105c75b59ad4cf8ab9be47a47cf5099d61e Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 1 Jun 2017 17:17:11 -0500 Subject: [PATCH] Tweak mail templates a bit, to reference config values probably more needs to be done, this is at least a step.. --- rattail_tempmon/templates/mail/tempmon_critical_temp.html.mako | 2 +- rattail_tempmon/templates/mail/tempmon_error.html.mako | 2 +- rattail_tempmon/templates/mail/tempmon_high_temp.html.mako | 2 +- rattail_tempmon/templates/mail/tempmon_low_temp.html.mako | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rattail_tempmon/templates/mail/tempmon_critical_temp.html.mako b/rattail_tempmon/templates/mail/tempmon_critical_temp.html.mako index 2dba9b6..6a34b42 100644 --- a/rattail_tempmon/templates/mail/tempmon_critical_temp.html.mako +++ b/rattail_tempmon/templates/mail/tempmon_critical_temp.html.mako @@ -17,7 +17,7 @@ Check out this USDA link for useful information

- This email will repeat every 15 minutes until the issue
+ This email will repeat every ${probe.status_alert_timeout} minutes until the issue
has been resolved.

diff --git a/rattail_tempmon/templates/mail/tempmon_error.html.mako b/rattail_tempmon/templates/mail/tempmon_error.html.mako index fbf4ec4..58da1e6 100644 --- a/rattail_tempmon/templates/mail/tempmon_error.html.mako +++ b/rattail_tempmon/templates/mail/tempmon_error.html.mako @@ -4,7 +4,7 @@

At ${taken or now}, ${probe} reported that its status was: ${status}.
Something went wrong. Please investigate as soon as possible.

-

This email will repeat every 15 minutes until the issue is resolved. +

This email will repeat every ${probe.status_alert_timeout} minutes until the issue is resolved.

diff --git a/rattail_tempmon/templates/mail/tempmon_high_temp.html.mako b/rattail_tempmon/templates/mail/tempmon_high_temp.html.mako index 11fdfc3..fd20517 100644 --- a/rattail_tempmon/templates/mail/tempmon_high_temp.html.mako +++ b/rattail_tempmon/templates/mail/tempmon_high_temp.html.mako @@ -10,7 +10,7 @@

Notes:
- This alert will happen every 15 minutes until
+ This alert will happen every ${probe.status_alert_timeout} minutes until
the temperature reaches an acceptable level.

diff --git a/rattail_tempmon/templates/mail/tempmon_low_temp.html.mako b/rattail_tempmon/templates/mail/tempmon_low_temp.html.mako index 11fdfc3..fd20517 100644 --- a/rattail_tempmon/templates/mail/tempmon_low_temp.html.mako +++ b/rattail_tempmon/templates/mail/tempmon_low_temp.html.mako @@ -10,7 +10,7 @@

Notes:
- This alert will happen every 15 minutes until
+ This alert will happen every ${probe.status_alert_timeout} minutes until
the temperature reaches an acceptable level.