Sha256: 7ba2e237bcfc4b14b92724dd5f4560694ed46f9d773abbc6c1f7f7fdc4454fd4

Contents?: true

Size: 576 Bytes

Versions: 3

Compression:

Stored size: 576 Bytes

Contents

<% check = @alert.check -%>
<% type = @alert.type -%>
<%= @alert.type_sentence_case -%>
: <% unless @ack_str.nil? || @ack_str.empty? %><%= @ack_str %>, <% end -%>
<%= '"' + check.name + '"' -%>
<% unless ['acknowledgement', 'test'].include?(type) -%>
 is <%= @alert.state_title_case -%>
<% end -%>
<% if 'acknowledgement'.eql?(type) -%>
 has been acknowledged, unscheduled maintenance created for <%= time_period_in_words(@alert.acknowledgement_duration) -%>
<% end -%>
<% summary = @alert.summary -%>
<% unless summary.nil? || summary.empty? -%>
, <%= summary -%>
<% end -%>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
flapjack-2.0.0 lib/flapjack/gateways/jabber/alert.text.erb
flapjack-2.0.0rc1 lib/flapjack/gateways/jabber/alert.text.erb
flapjack-2.0.0b1 lib/flapjack/gateways/jabber/alert.text.erb