<%= _("Host Collections") %>

<% organizations = Organization.current.present? ? [Organization.current] : User.current.allowed_organizations %> <% critical, warning, ok = Katello::HostCollection.lists_by_updates_needed(organizations) %> <% host_collections = (critical + warning + ok)[0..6] %> <% if host_collections.empty? %>

<%= _("No host collections found.") %>

<% else %> <% host_collections.each do |host_collection| %> <% end %>
Updates Name Content Hosts
<% if host_collection.security_updates? %>   <% elsif host_collection.bugzilla_updates? || host_collection.enhancement_updates? %>   <% else %>   <% end %> <%= host_collection.name %> <%= host_collection.systems.length %>
<% end %>