Sha256: 4997d80cba7c7e46effb10c6c9efaa69a51c6e155b816c326e0eabb3f053a401
Contents?: true
Size: 1.56 KB
Versions: 8
Compression:
Stored size: 1.56 KB
Contents
<h4 class="header"> <%= _("Host Collections") %> </h4> <% 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? %> <p class="ca"><%= _("No host collections found.") %></p> <% else %> <table class="table table-fixed table-striped table-bordered"> <thead> <tr> <th><%= _("Updates") %></th> <th><%= _("Name") %></th> <th><%= _("Content Hosts") %></th> </tr> </thead> <tbody> <% host_collections.each do |host_collection| %> <tr> <td> <% if host_collection.security_updates? %> <a href="/host_collections/<%= host_collection.id %>" style="text-align: center"><i class="label label-danger"> </i></a> <% elsif host_collection.bugzilla_updates? || host_collection.enhancement_updates? %> <a href="/host_collections/<%= host_collection.id %>" style="text-align: center"><i class="label label-warning"> </i></a> <% else %> <a href="/host_collections/<%= host_collection.id %>" style="text-align: center"><i class="label label-success"> </i></a> <% end %> </td> <td class='ellipsis'><%= host_collection.name %></td> <td style="text-align: right"><%= host_collection.hosts.length %></td> </tr> <% end %> </tbody> </table> <% end %>
Version data entries
8 entries across 8 versions & 1 rubygems