aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2013-05-16 14:13:35 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2013-05-16 14:13:35 +0100
commit46e55b62412cea23beba4efb7ee169245619b6de (patch)
tree85e085333b2b03d921bccbb62af469e5553145a3
parent6aca9486da70f4b118e276176648fb40e5cceece (diff)
Updated templates again
-rw-r--r--lib/mauve/notifiers/templates/xmpp.html.erb2
-rw-r--r--lib/mauve/notifiers/templates/xmpp.txt.erb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/mauve/notifiers/templates/xmpp.html.erb b/lib/mauve/notifiers/templates/xmpp.html.erb
index 85bec3b..7792bd9 100644
--- a/lib/mauve/notifiers/templates/xmpp.html.erb
+++ b/lib/mauve/notifiers/templates/xmpp.html.erb
@@ -1,5 +1,5 @@
<html xmlns="http://jabber.org/protocol/xhtml-im"><body xmlns="http://www.w3.org/1999/xhtml">
-<a href="<%=WebInterface.url_for(alert)%>"><%= alert.id%>: <%= alert.update_type.upcase %></a> <%= alert.level.to_s.capitalize %>: <%
+<a href="<%=WebInterface.url_for(alert)%>"><%= alert.id%>: <%= alert.update_type.upcase %></a> (<%= alert.level %>): <%
case alert.update_type
when "cleared"
%><%= alert.cleared_at.to_s_relative %><%
diff --git a/lib/mauve/notifiers/templates/xmpp.txt.erb b/lib/mauve/notifiers/templates/xmpp.txt.erb
index 63ad000..c148f41 100644
--- a/lib/mauve/notifiers/templates/xmpp.txt.erb
+++ b/lib/mauve/notifiers/templates/xmpp.txt.erb
@@ -1,4 +1,4 @@
-<%=alert.id %>: <%= alert.update_type.upcase %> <%= alert.level.to_s.capitalize %>: <%
+<%=alert.id %>: <%= alert.update_type.upcase %> (<%= alert.level %>): <%
case alert.update_type
when "cleared"
%><%= alert.cleared_at.to_s_relative %><%