Project

General

Profile

Download (952 Bytes) Statistics
| Branch: | Tag: | Revision:
49338863 Amos Benari
<div class="row">
bf4a13d3 Walden Raines
<div class="col-md-8">
1a51088d Ohad Levy
82e47ae0 Amos Benari
<table class="table table-bordered table-striped">
49338863 Amos Benari
<thead>
<tr>
<th> Name </th>
<th> Hostgroup </th>
<th> Environment </th>
bfbf7ed8 Lukas Zapletal
<%= raw("<th>" + _("Location") + "</th>") if SETTINGS[:locations_enabled]%>
<%= raw("<th>" + _("Organization") + "</th>") if SETTINGS[:organizations_enabled]%>
49338863 Amos Benari
</tr>
</thead>
<tbody>
4d4557e9 Joseph Magen
<% hosts.each do |host| %>
29972d83 Amos Benari
<tr>
49338863 Amos Benari
<td><%=h host %> </td>
<td><%=h host.try(:hostgroup) %></td>
<td><%=h host.try(:environment) %></td>
a6bbe3d7 Ohad Levy
<% if SETTINGS[:locations_enabled]%>
<td><%=h host.try(:location) %></td>
<% end %>
<% if SETTINGS[:organizations_enabled]%>
<td><%=h host.try(:organization) %></td>
<% end %>
49338863 Amos Benari
</tr>
4d4557e9 Joseph Magen
<% end %>
49338863 Amos Benari
</tbody>
</table>
</div>
</div>