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-16.1.2 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-16.2.0 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-16.1.0 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-16.0.1 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-16.0.0 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-15.1.0 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-15.0.2 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-15.0.1 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-15.0.0 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-14.0.1 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-14.0.0 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-13.0.1 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-12.0.2 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-12.0.1 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-12.0.0 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-11.0.0 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-9.1.5 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-9.1.4 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-10.0.0 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-9.1.3 app/views/dashboard/_discovery_widget.html.erb