From 3472be35b5f6b896f51fe95f6001be648e0ec628 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Mon, 13 Jun 2011 11:49:34 +0100 Subject: Updated email alert to send a sane subject, and valid HTML. --- lib/mauve/notifiers/templates/email.html.erb | 22 ++++++++-------------- lib/mauve/notifiers/templates/email.txt.erb | 2 +- 2 files changed, 9 insertions(+), 15 deletions(-) (limited to 'lib/mauve/notifiers/templates') diff --git a/lib/mauve/notifiers/templates/email.html.erb b/lib/mauve/notifiers/templates/email.html.erb index fcf0620..c568d77 100644 --- a/lib/mauve/notifiers/templates/email.html.erb +++ b/lib/mauve/notifiers/templates/email.html.erb @@ -1,4 +1,7 @@ -

<%= alert.update_type.upcase %> <% + + +

<%= alert.update_type.upcase %>: <% case alert.update_type when :cleared %><%= MauveTime.now.to_s_relative(alert.cleared_at.to_time) %><% @@ -11,18 +14,9 @@ end if alert.source != alert.subject %> -- from <%= alert.source %><% end -%>. - +%>.


- -
-<%=alert.detail %> -
- +

Detail

+
<%=alert.detail %>

- -
---
-Love mauve
-xxx. -
+
--
Love mauve
xxx.
diff --git a/lib/mauve/notifiers/templates/email.txt.erb b/lib/mauve/notifiers/templates/email.txt.erb index 8f7e9a4..eb49da9 100644 --- a/lib/mauve/notifiers/templates/email.txt.erb +++ b/lib/mauve/notifiers/templates/email.txt.erb @@ -13,7 +13,7 @@ if alert.source != alert.subject end %>. --- Details ------------------------------------------------------------ +-- Detail ------------------------------------------------------------ <%= Sanitize.clean(alert.detail) %> -- cgit v1.2.1