System Overview

<% if @alerts.empty? %>

No alerts

<% else %> <% @alerts.each do |alert| %>

<%= alert.name %>

<% unless alert.execute_errors.nil? || alert.execute_errors.empty? %>

An error occurred running this alert: <%= alert.execute_errors.gsub('<', '<').gsub('>', '>') %>

<% else %> <% if alert.active_alerts.empty? %>

All systems functioning normally

<% else %> <% end %> <% end %>
<% end %> <% end %>