aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/notifiers/templates/email.txt.erb
blob: 8f7e9a4611350ca8b5d384ab31433b3be5592f5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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