aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/notifiers/templates/email.txt.erb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mauve/notifiers/templates/email.txt.erb')
-rw-r--r--lib/mauve/notifiers/templates/email.txt.erb24
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/mauve/notifiers/templates/email.txt.erb b/lib/mauve/notifiers/templates/email.txt.erb
index e69de29..8f7e9a4 100644
--- a/lib/mauve/notifiers/templates/email.txt.erb
+++ b/lib/mauve/notifiers/templates/email.txt.erb
@@ -0,0 +1,24 @@
+<%= alert.update_type.upcase %>: <%
+case alert.update_type
+when :cleared
+%><%= MauveTime.now.to_s_relative(alert.cleared_at.to_time) %><%
+when :acknowleged
+%><%= MauveTime.now.to_s_relative(alert.acknowledged_at.to_time) %><%
+else
+%><%= MauveTime.now.to_s_relative(alert.raised_at.to_time) %><%
+end
+%>: <%= alert.summary %><%
+if alert.source != alert.subject
+%> -- from <%= alert.source %><%
+end
+%>.
+
+-- Details ------------------------------------------------------------
+
+<%= Sanitize.clean(alert.detail) %>
+
+-----------------------------------------------------------------------
+
+--
+Love mauve.
+xx