Revision 82e47ae0
Added by Amos Benari about 12 years ago
- ID 82e47ae0f86994702c3a084cc6150250a81034ee
app/views/hostgroups/index.html.erb | ||
---|---|---|
|
||
<% title_actions display_link_if_authorized("New Hostgroup", hash_for_new_hostgroup_path), help_path %>
|
||
|
||
<table class="list">
|
||
<table class="table table-bordered table-striped">
|
||
<tr>
|
||
<th>Name</th>
|
||
<th></th>
|
||
... | ... | |
<% Hostgroup.sort_by_ancestry(@hostgroups).each do |hostgroup| %>
|
||
<tr class="<%= cycle("even", "odd") -%>">
|
||
<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 "Delete", hash_for_hostgroup_path(:id => hostgroup, :auth_action => :destroy), :confirm => warning_message(hostgroup), :method => :delete %>
|
||
<td>
|
||
<%= action_buttons(
|
||
display_link_if_authorized('Nest', hash_for_nest_hostgroup_path(:id => hostgroup), :class=>"btn btn-small"),
|
||
display_link_if_authorized('Clone', hash_for_clone_hostgroup_path(:id => hostgroup)),
|
||
display_delete_if_authorized(hash_for_hostgroup_path(:id => hostgroup), :confirm => warning_message(hostgroup))) %>
|
||
</td>
|
||
</tr>
|
||
<% end %>
|
Also available in: Unified diff
updates UI to bootstrap v2