Sha256: 096e16f4f2122fdeae7e18ce10b3f68b985f33669c0a52609194bdf985175699

Contents?: true

Size: 470 Bytes

Versions: 72

Compression:

Stored size: 470 Bytes

Contents

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

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

<% if hosts.empty? %>
   <p class="ca"><%= _("No discovered hosts available") %></p>
<% else %>
    <%= render :partial => 'discovery_widget_host_list', :locals => { :hosts => hosts } %>
<% end %>

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
foreman_discovery-25.0.0 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-24.0.2 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-23.0.2 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-24.0.1 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-24.0.0 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-23.0.1 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-23.0.0 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-22.0.4 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-21.0.5 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-22.0.2 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-21.0.4 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-21.0.3 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-21.0.2 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-19.0.5 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-19.0.4 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-21.0.1 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-19.0.3 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-21.0.0 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-19.0.2 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-20.0.1 app/views/dashboard/_discovery_widget.html.erb