lib/flapjack/gateways/web/views/contact.html.erb in flapjack-0.7.27 vs lib/flapjack/gateways/web/views/contact.html.erb in flapjack-0.7.28

- old
+ new

@@ -22,31 +22,39 @@ <table class="table table-bordered table-hover table-condensed"> <tr> <th>Media</th> <th>Address</th> <th>Interval</th> + <th>Rollup Threshold</th> </tr> <% @contact.media.each_pair do |mk, mv| %> <tr> <% if 'pagerduty'.eql?(mk) %> <td>PagerDuty</td> <td> <% @pagerduty_credentials.each_pair do |pk, pv| %> <p><%= 'password'.eql?(pk) ? h("#{pk}: ...") : h("#{pk}: #{pv}") %></p> <% end %> </td> - <td>-</td> <% else %> <td><%= h mk.capitalize %></td> <td><%= h mv %></td> - <td> - <% if @contact.media_intervals[mk] %> - <%= h @contact.media_intervals[mk] %> seconds - <% else %> - no custom interval - <% end %> - </td> <% end %> + + <td> + <% if @contact.media_intervals[mk] %> + <%= h @contact.media_intervals[mk] %> seconds + <% else %> + no custom interval + <% end %> + </td> + <td> + <% if @contact.media_rollup_thresholds[mk] %> + <%= h @contact.media_rollup_thresholds[mk] %> failing checks + <% else %> + - + <% end %> + </td> </tr> <% end %> </table> <% end %>