Sha256: 45065cd460eaf8b7235cfc795474e5a0b7925968c1873a437d666ae388cd33d9

Contents?: true

Size: 640 Bytes

Versions: 6

Compression:

Stored size: 640 Bytes

Contents

<h4 class="ca"><%= _('Discovered Host Pool') %> - <%= @current_permission %></h4>
<% all_hosts = Host::Discovered.search_for '' %>
<% hosts = all_hosts.limit(5) %>
<% if hosts.empty? %>
  <p class="ca"><%= _("No discovered hosts available") %></p>
<% else %>
  <table class="table table-striped ellipsis">
    <% hosts.each do |host| %>
      <tr>
        <td><%= link_to h(host.name), discovered_host_path(host) %></td>
        <td><%= host.ip  %></td>
      </tr>
    <% end %>
  </table>
  <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-1.4.1 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-1.4.0 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-1.4.0.rc4 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-1.4.0.rc3 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-1.4.0.rc2 app/views/dashboard/_discovery_widget.html.erb
foreman_discovery-1.4.0.rc1 app/views/dashboard/_discovery_widget.html.erb