Sha256: 7de0cdf74cfa762b512e6e9cfbeb281e6fc6e5963aa9c649973369db31b3db9e

Contents?: true

Size: 742 Bytes

Versions: 8

Compression:

Stored size: 742 Bytes

Contents

<h1>System Overview</h1>
<% if @alerts.empty? %>
    <p>No alerts</p>
<% else %>
    <% @alerts.each do |alert, systems| %>
        <div class="alert <%= alert.severity %>">
            <h1><%= alert.name %></h1>
            <% if systems.empty? %>
                <p>All systems functioning normally</p>
            <% elsif systems.is_a?(String) %>
                <p><%= systems.gsub('<', '&lt;').gsub('>', '&gt;') %></p>
            <% else %>
                <ul>
                    <% systems.each do |system| %>
                        <li><a href="<%= url_prefix %>systems/<%= system.id %>"><%= system.name %></a></li>
                    <% end %>
                </ul>
            <% end %>
        </div>
    <% end %> 
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
perus-0.1.7 lib/perus/server/views/index.erb
perus-0.1.6 lib/perus/server/views/index.erb
perus-0.1.5 lib/perus/server/views/index.erb
perus-0.1.4 lib/perus/server/views/index.erb
perus-0.1.3 lib/perus/server/views/index.erb
perus-0.1.2 lib/perus/server/views/index.erb
perus-0.1.1 lib/perus/server/views/index.erb
perus-0.1.0 lib/perus/server/views/index.erb