lib/flapjack/gateways/sms_twilio/alert.text.erb in flapjack-1.6.0 vs lib/flapjack/gateways/sms_twilio/alert.text.erb in flapjack-2.0.0b1
- old
+ new
@@ -1,6 +1,7 @@
+<% check = @alert.check -%>
<% summary = @alert.summary -%>
-<%= @alert.type_sentence_case %>: '<%= @alert.check %>' on <%= @alert.entity -%>
-<% unless ['acknowledgement', 'test'].include?(@alert.notification_type) -%>
+<%= @alert.type_sentence_case %>: <%= "'#{check.name}'" -%>
+<% unless ['acknowledgement', 'test'].include?(@alert.type) -%>
is <%= @alert.state_title_case -%>
<% end -%>
at <%= Time.at(@alert.time).strftime('%-d %b %H:%M') %><%= (summary.nil? || summary.empty?) ? '' : ", #{summary}" -%>