Revision 4d4b84f6
Added by Ohad Levy almost 13 years ago
- ID 4d4b84f6b722874504f508fa92802f6ddee37c11
app/views/hostgroups/index.html.erb | ||
---|---|---|
<th>Name</th>
|
||
<th></th>
|
||
</tr>
|
||
<% for hostgroup in @hostgroups %>
|
||
<% Hostgroup.sort_by_ancestry(@hostgroups).each do |hostgroup| %>
|
||
<tr class="<%= cycle("even", "odd") -%>">
|
||
<td><%=link_to_if_authorized h(hostgroup.name), hash_for_edit_hostgroup_path(:id => hostgroup) %></td>
|
||
<td> <%= hostgroup_name hostgroup %> </td>
|
||
<td class="ra">
|
||
<%= display_link_if_authorized 'Nest', hash_for_nest_hostgroup_path(:id => hostgroup) %>
|
||
<%= display_link_if_authorized 'Clone', hash_for_clone_hostgroup_path(:id => hostgroup) %>
|
||
<%= display_link_if_authorized "Destroy", hash_for_hostgroup_path(:id => hostgroup, :auth_action => :destroy), :confirm => 'Are you sure?', :method => :delete %>
|
||
<%= display_link_if_authorized "Destroy", hash_for_hostgroup_path(:id => hostgroup, :auth_action => :destroy), :confirm => warning_message(hostgroup), :method => :delete %>
|
||
</td>
|
||
</tr>
|
||
<% end %>
|
Also available in: Unified diff
fixes #35 - Allow hostgroup nesting for puppet classes and parameters