lib/flapjack/gateways/email/alert.text.erb in flapjack-0.7.27 vs lib/flapjack/gateways/email/alert.text.erb in flapjack-0.7.28

- old
+ new

@@ -2,11 +2,11 @@ Monitoring has detected the following: Entity: <%= @entity_name %> Check: <%= @check %> -State: <%= @state.upcase %> +State: <%= ['ok'].include?(@state) ? @state.upcase : @state.titleize %> Summary: <%= @summary %> <% if @details -%> Details: <%= @details %> <% end -%> <% if @time -%> @@ -14,10 +14,10 @@ <% end -%> <% if @duration && @duration > 40 -%> Duration: <%= ChronicDuration.output(@duration) %> <% end -%> <% if @last_state -%> -Previous State: <%= @last_state.upcase %> +Previous State: <%= ['ok'].include?(@last_state) ? @last_state.upcase : @last_state.titleize %> <% end -%> <% if @last_summary -%> Previous Summary: <%= @last_summary %> <% end -%>