From 7955f018ab4dcbc0406dd83d4b62924be68dc072 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Mon, 4 Jul 2011 15:16:08 +0100 Subject: Spell acknowledge correctly! --- lib/mauve/notifiers/templates/email.html.erb | 2 +- lib/mauve/notifiers/templates/email.txt.erb | 2 +- lib/mauve/notifiers/templates/xmpp.txt.erb | 2 +- lib/mauve/web_interface.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/mauve/notifiers/templates/email.html.erb b/lib/mauve/notifiers/templates/email.html.erb index 929237a..c2016fd 100644 --- a/lib/mauve/notifiers/templates/email.html.erb +++ b/lib/mauve/notifiers/templates/email.html.erb @@ -5,7 +5,7 @@ case alert.update_type.to_sym when :cleared %><%= alert.cleared_at.to_s_relative %><% -when :acknowleged +when :acknowledged %><%= alert.acknowledged_at.to_s_relative %><% else %><%= alert.raised_at.to_s_relative %><% diff --git a/lib/mauve/notifiers/templates/email.txt.erb b/lib/mauve/notifiers/templates/email.txt.erb index 7f4f081..dbbd3fa 100644 --- a/lib/mauve/notifiers/templates/email.txt.erb +++ b/lib/mauve/notifiers/templates/email.txt.erb @@ -2,7 +2,7 @@ case alert.update_type.to_sym when :cleared %><%= alert.cleared_at.to_s_relative %><% -when :acknowleged +when :acknowledged %><%= alert.acknowledged_at.to_s_relative %><% else %><%= alert.raised_at.to_s_relative %><% diff --git a/lib/mauve/notifiers/templates/xmpp.txt.erb b/lib/mauve/notifiers/templates/xmpp.txt.erb index c123038..331d7ef 100644 --- a/lib/mauve/notifiers/templates/xmpp.txt.erb +++ b/lib/mauve/notifiers/templates/xmpp.txt.erb @@ -2,7 +2,7 @@ case alert.update_type.to_sym when :cleared %><%= alert.cleared_at.to_s_relative %><% -when :acknowleged +when :acknowledged %><%= alert.acknowledged_at.to_s_relative %> by <%= alert.acknowledged_by %><% else %><%= alert.raised_at.to_s_relative %><% diff --git a/lib/mauve/web_interface.rb b/lib/mauve/web_interface.rb index 29e41f7..3770924 100644 --- a/lib/mauve/web_interface.rb +++ b/lib/mauve/web_interface.rb @@ -324,7 +324,7 @@ EOF alert.acknowledge!(@person, ack_until) - flash['notice'] = "Successfully acknowleged alert #{alert.alert_id} from source #{alert.source}." + flash['notice'] = "Successfully acknowledged alert #{alert.alert_id} from source #{alert.source}." redirect "/alert/#{alert.id}" end -- cgit v1.2.1