Sha256: 3d4d3debf306c0a6da861cb0ccb34194cdee37f4eb062f624cfacda8bbf84a8c

Contents?: true

Size: 915 Bytes

Versions: 6

Compression:

Stored size: 915 Bytes

Contents

<div class="row">
  <div class="col-md-12">

    <table class="<%= table_css_classes %>">
      <thead>
        <tr>
          <th><%= _('Name') %></th>
          <th><%= _('Model') %></th>
          <% if SETTINGS[:locations_enabled] %>
            <th><%= _('Location') %></th>
          <% end %>
          <% if SETTINGS[:organizations_enabled] %>
            <th><%= _('Organization') %></th>
          <% end %>
        </tr>
      </thead>
      <tbody>
        <% hosts.each do |host| -%>
          <tr>
            <td><%=h host %> </td>
            <td><%=h host.model %> </td>
            <% if SETTINGS[:locations_enabled]%>
            <td><%=h host.try(:location) %></td>
            <% end %>
            <% if SETTINGS[:organizations_enabled]%>
            <td><%=h host.try(:organization) %></td>
            <% end %>
          </tr>
        <% end -%>
      </tbody>
    </table>
  </div>
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
foreman_discovery-14.0.1 app/views/discovered_hosts/_selected_hosts.html.erb
foreman_discovery-14.0.0 app/views/discovered_hosts/_selected_hosts.html.erb
foreman_discovery-13.0.1 app/views/discovered_hosts/_selected_hosts.html.erb
foreman_discovery-12.0.2 app/views/discovered_hosts/_selected_hosts.html.erb
foreman_discovery-12.0.1 app/views/discovered_hosts/_selected_hosts.html.erb
foreman_discovery-12.0.0 app/views/discovered_hosts/_selected_hosts.html.erb