Sha256: 781e596941c4cb95766445b7ae666b0a5973646256d045640cbd741286002539

Contents?: true

Size: 554 Bytes

Versions: 6

Compression:

Stored size: 554 Bytes

Contents

<h4 class="ca"><%= _('Discovered Host Pool') %> - <%= @current_permission %></h4>
<% all_hosts = Host::Discovered.includes(:model).includes(:discovery_attribute_set).scoped %>
<% hosts = all_hosts.limit(5) %>
<% if hosts.empty? %>
   <p class="ca"><%= _("No discovered hosts available") %></p>
<% else %>
    <%= render :partial => 'discovery_widget_host_list', :locals => { :hosts => hosts } %>
    <p class="ca"><%= link_to n_("Total pool size", "Total pool size", all_hosts.size), discovered_hosts_path %>
      - <%= all_hosts.size %> </p>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
foreman_discovery-2.0.2 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-2.0.1 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-3.0.0 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-2.0.0 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-2.0.0.rc2 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-2.0.0.rc1 app/views/dashboard/_discovery_widget.html.erb