From bf87bfa0e0add362febf7d376a509c68e0144d7a Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Thu, 16 May 2013 12:40:37 +0100 Subject: Alert level now in templates --- lib/mauve/notifiers/templates/xmpp.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/mauve/notifiers/templates/xmpp.html.erb') diff --git a/lib/mauve/notifiers/templates/xmpp.html.erb b/lib/mauve/notifiers/templates/xmpp.html.erb index 12354a2..85bec3b 100644 --- a/lib/mauve/notifiers/templates/xmpp.html.erb +++ b/lib/mauve/notifiers/templates/xmpp.html.erb @@ -1,5 +1,5 @@ -<%= alert.id%>: <%= alert.update_type.upcase %>: <% +<%= alert.id%>: <%= alert.update_type.upcase %> <%= alert.level.to_s.capitalize %>: <% case alert.update_type when "cleared" %><%= alert.cleared_at.to_s_relative %><% @@ -15,9 +15,9 @@ end %>.<% if defined? was_suppressed and defined? will_suppress if was_suppressed and not will_suppress -%>
Normal service has resumed.<% +%>
Normal service for <%= alert.level %> alerts has resumed.<% elsif will_suppress and not was_suppressed -%>
Further alerts suppressed until things calm down.<% +%>
Further <%= alert.level %> alerts suppressed until things calm down.<% end end %> -- cgit v1.2.1