<% all_hosts = Host::Discovered.includes(:model).includes(:discovery_attribute_set).all %> <% hosts = all_hosts.limit(6) %>

<%= link_to "#{all_hosts.size} #{n_('Discovered Host', 'Discovered Hosts', all_hosts.size)}", discovered_hosts_path %>

<% if hosts.empty? %>

<%= _("No discovered hosts available") %>

<% else %> <%= render :partial => 'discovery_widget_host_list', :locals => { :hosts => hosts } %> <% end %>