Sha256: 674b114712fa3f3539c326a77c432f9cc4f19ba15d2b2ac69ec5205d8dcf1457

Contents?: true

Size: 1.02 KB

Versions: 2

Compression:

Stored size: 1.02 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(hosts).order('updated desc').limit(6) %>

<% 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>
          <th class="" title="<%= erratum.errata_type %>"><%= erratum.errata_type %></th>
          <th>
            <a href="/errata/<%= erratum.uuid %>/info">
              <%= erratum.errata_id %> (<%= hosts.length %> <%= _('Hosts') %>)
            </a>
          </th>
        </tr>

      <% end %>
    </tbody>
  </table>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
katello-3.2.0.rc1.1 app/views/dashboard/_errata_widget.html.erb
katello-3.2.0.rc1 app/views/dashboard/_errata_widget.html.erb