Sha256: 34ade682ca393478b289fd6584c12afbbb4bac416283c84fac9190df422bb286
Contents?: true
Size: 1.07 KB
Versions: 12
Compression:
Stored size: 1.07 KB
Contents
<h4 class="header"> <%= _("Latest Errata") %> </h4> <% organizations = Organization.current.present? ? [Organization.current] : User.current.allowed_organizations %> <% hosts = ::Host::Managed.authorized("view_hosts") %> <% errata = Katello::Erratum.applicable_to_hosts_dashboard(hosts) %> <% if errata.empty? %> <p class="ca"><%= _("There are no errata that need to be applied to registered content hosts.") %></p> <% else %> <table class="table table-fixed table-striped"> <thead> <tr> <th><%= _("Type") %></th> <th><%= _("Errata") %></th> </tr> </thead> <tbody> <% errata.each do |erratum| %> <% hosts = erratum.hosts_applicable %> <tr> <td class="ellipsis" title="<%= erratum.errata_type %>"><%= erratum.errata_type %></td> <td class="ellipsis"> <a href="/errata/<%= erratum.uuid %>"> <%= erratum.errata_id %> (<%= n_("%s Host", "%s Hosts", hosts.length) % hosts.length %>) </a> </td> </tr> <% end %> </tbody> </table> <% end %>
Version data entries
12 entries across 12 versions & 1 rubygems