Sha256: 19fa656194df53449332776321e60ac2f89e5224b23cb75fcd4d2ecf50d21933

Contents?: true

Size: 1.1 KB

Versions: 19

Compression:

Stored size: 1.1 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 class='ellipsis'><%= _("Type") %></th>
        <th class='ellipsis'><%= _("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

19 entries across 19 versions & 1 rubygems

Version Path
katello-3.10.2 app/views/dashboard/_errata_widget.html.erb
katello-3.10.1.1 app/views/dashboard/_errata_widget.html.erb
katello-3.10.1 app/views/dashboard/_errata_widget.html.erb
katello-3.10.0 app/views/dashboard/_errata_widget.html.erb
katello-3.10.0.rc1.1 app/views/dashboard/_errata_widget.html.erb
katello-3.9.1 app/views/dashboard/_errata_widget.html.erb
katello-3.10.0.rc1 app/views/dashboard/_errata_widget.html.erb
katello-3.9.0 app/views/dashboard/_errata_widget.html.erb
katello-3.8.1 app/views/dashboard/_errata_widget.html.erb
katello-3.9.0.rc2 app/views/dashboard/_errata_widget.html.erb
katello-3.9.0.rc1 app/views/dashboard/_errata_widget.html.erb
katello-3.7.1.1 app/views/dashboard/_errata_widget.html.erb
katello-3.7.1 app/views/dashboard/_errata_widget.html.erb
katello-3.8.0 app/views/dashboard/_errata_widget.html.erb
katello-3.8.0.rc3 app/views/dashboard/_errata_widget.html.erb
katello-3.8.0.rc2 app/views/dashboard/_errata_widget.html.erb
katello-3.7.0 app/views/dashboard/_errata_widget.html.erb
katello-3.8.0.rc1 app/views/dashboard/_errata_widget.html.erb
katello-3.7.0.rc2 app/views/dashboard/_errata_widget.html.erb