Sha256: b3f93264fbae46fb29bdf01018b181fe3a27b1faa9465af19419fe482dca7e9c

Contents?: true

Size: 951 Bytes

Versions: 5

Compression:

Stored size: 951 Bytes

Contents

<div class="row">
  <div class="span8">

    <table class="table table-bordered table-striped">
      <thead>
        <tr>
          <th> Name </th>
          <th> Hostgroup </th>
          <th> Environment </th>
          <%= raw("<th>" + _("Location") + "</th>") if SETTINGS[:locations_enabled]%>
          <%= raw("<th>" + _("Organization") + "</th>") if SETTINGS[:organizations_enabled]%>
        </tr>
      </thead>
      <tbody>
        <% hosts.each do |host| -%>
          <tr>
            <td><%=h host %> </td>
            <td><%=h host.try(:hostgroup) %></td>
            <td><%=h host.try(:environment) %></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

5 entries across 5 versions & 1 rubygems

Version Path
foreman_discovery-1.0.0 test/foreman_app/app/views/hosts/_selected_hosts.html.erb
foreman_discovery-1.0.0.rc4 test/foreman_app/app/views/hosts/_selected_hosts.html.erb
foreman_discovery-1.0.0.rc3 test/foreman_app/app/views/hosts/_selected_hosts.html.erb
foreman_discovery-1.0.0.rc2 test/foreman_app/app/views/hosts/_selected_hosts.html.erb
foreman_discovery-1.0.0.rc1 test/foreman_app/app/views/hosts/_selected_hosts.html.erb