Sha256: 85b0d22efdc4c3e5d295ff026b1f1993d962589dd1890aeb2895c3e1e3f11281
Contents?: true
Size: 1013 Bytes
Versions: 21
Compression:
Stored size: 1013 Bytes
Contents
<h1>System Overview</h1> <% if @alerts.empty? %> <p>No alerts</p> <% else %> <% @alerts.each do |alert| %> <div class="alert"> <h1><%= alert.name %></h1> <% unless alert.execute_errors.nil? || alert.execute_errors.empty? %> <p>An error occurred running this alert: <%= alert.execute_errors.gsub('<', '<').gsub('>', '>') %></p> <% else %> <% if alert.active_alerts.empty? %> <p>All systems functioning normally</p> <% else %> <ul class="alerts"> <% alert.active_alerts.each do |active_alert| %> <li class="<%= alert.severity %>"><a href="<%= url_prefix %>systems/<%= active_alert.system.id %>"><%= active_alert.system.name %> (<%= active_alert.active_for %>)</a></li> <% end %> </ul> <% end %> <% end %> </div> <% end %> <% end %>
Version data entries
21 entries across 21 versions & 1 rubygems