aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/notifiers/templates/email.html.erb
blob: 24b5e7bb5cbd745c478084fae37d546e7c5b58e8 (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
25
26
27
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><title></title></head><body>
<p><a href="<%= WebInterface.url_for(alert) %>"><%= alert.update_type.upcase %></a>:<% 
case alert.update_type
when "cleared" 
%><%= alert.cleared_at.to_s_relative %><% 
when "acknowledged"
%><%= alert.acknowledged_at.to_s_relative %> by <%= alert.acknowledged_by%> until <%= alert.will_unacknowledge_at.to_s_human %><% 
else
%><%= alert.raised_at.to_s_relative %><% 
end 
%>: <%= alert.subject %>: <%= alert.summary %><%
if alert.source != alert.subject 
%> -- <em>from <%= alert.source %></em><%
end 
%>.</p>
<hr />
<h2>Detail</h2>
<div><%= RedCloth.new(alert.detail).to_html %></div>
<hr />
<% if was_suppressed and not is_suppressed %>
<p><strong>Better now.  Your notifications have now restarted.</strong></p>
<% elsif is_suppressed and not was_suppressed %>
<p><strong>Too noisy!  Your notifications have been suppressed.</strong></p>
<% end %>
<address>-- <br />Love mauve<br />xxx.</address></body></html>