lib/flapjack/gateways/email/alert.text.erb in flapjack-0.7.20 vs lib/flapjack/gateways/email/alert.text.erb in flapjack-0.7.21
- old
+ new
@@ -1,13 +1,13 @@
-Hi <%= @contact_first_name %>,
+Hi <%= @contact_first_name %>
Monitoring has detected the following:
Entity: <%= @entity_name %>
Check: <%= @check %>
State: <%= @state %>
Summary: <%= @summary %>
-Time: <%= Time.at(@time.to_i).to_s %> (<%= @relative %> ago)
+<%= @time ? "Time: #{Time.at(@time.to_i).to_s}" : '' %>
<%= @last_state ? "\nPrevious state: #{@last_state}" : '' %><%= @last_summary ? "\nPrevious summary: #{@last_summary}" : '' %>
Cheers,
Flapjack