|
<div class="row">
|
|
<div class="col-md-8">
|
|
|
|
<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>
|