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('<', '&lt;').gsub('>', '&gt;') %></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

Version Path
perus-0.1.28 lib/perus/server/views/index.erb
perus-0.1.27 lib/perus/server/views/index.erb
perus-0.1.26 lib/perus/server/views/index.erb
perus-0.1.25 lib/perus/server/views/index.erb
perus-0.1.24 lib/perus/server/views/index.erb
perus-0.1.23 lib/perus/server/views/index.erb
perus-0.1.22 lib/perus/server/views/index.erb
perus-0.1.21 lib/perus/server/views/index.erb
perus-0.1.20 lib/perus/server/views/index.erb
perus-0.1.19 lib/perus/server/views/index.erb
perus-0.1.18 lib/perus/server/views/index.erb
perus-0.1.17 lib/perus/server/views/index.erb
perus-0.1.16 lib/perus/server/views/index.erb
perus-0.1.15 lib/perus/server/views/index.erb
perus-0.1.14 lib/perus/server/views/index.erb
perus-0.1.13 lib/perus/server/views/index.erb
perus-0.1.12 lib/perus/server/views/index.erb
perus-0.1.11 lib/perus/server/views/index.erb
perus-0.1.10 lib/perus/server/views/index.erb
perus-0.1.9 lib/perus/server/views/index.erb