Sha256: a731148380a76172829efe76a04fef37e10b77b754fa2ca6dfa3a03c506a5499

Contents?: true

Size: 925 Bytes

Versions: 2

Compression:

Stored size: 925 Bytes

Contents

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

    <table class="table table-bordered table-striped">
      <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

2 entries across 2 versions & 1 rubygems

Version Path
foreman_discovery-11.0.0 app/views/discovered_hosts/_selected_hosts.html.erb
foreman_discovery-10.0.0 app/views/discovered_hosts/_selected_hosts.html.erb