lib/flapjack/gateways/web/views/contact.html.erb in flapjack-0.7.21 vs lib/flapjack/gateways/web/views/contact.html.erb in flapjack-0.7.22

- old
+ new

@@ -88,18 +88,23 @@ <th>Entities</th> <th>Tags</th> <th>Warning Media</th> <th>Critical Media</th> <th>Time Restrictions</th> + <th>Blackholes</th> </tr> <% rules.each do |rule| %> <tr> <td><%= h rule.id %></td> <td><%= h( (rule.entities && !rule.entities.empty?) ? rule.entities.join(', ') : '-') %></td> <td><%= h( (rule.tags && !rule.tags.empty?) ? rule.tags.to_a.join(', ') : '-') %></td> <td><%= h( (rule.warning_media && !rule.warning_media.empty?) ? rule.warning_media.join(', ') : '-')%></td> <td><%= h( (rule.critical_media && !rule.critical_media.empty?) ? rule.critical_media.join(', ') : '-') %></td> <td><%= h(rule.time_restrictions) %></td> + <% blackholes = [] %> + <% blackholes << 'Warning' if rule.warning_blackhole %> + <% blackholes << 'Critical' if rule.critical_blackhole %> + <td><%= h(blackholes.join(', ')) %></td> </tr> <% end %> </table> <% end %>