Revision acfbc458
Added by Marek Hulán about 10 years ago
app/views/hostgroups/index.html.erb | ||
---|---|---|
</tr>
|
||
<% @hostgroups.each do |hostgroup| %>
|
||
<tr>
|
||
<td> <%= label_with_link(hostgroup) %> </td>
|
||
<td> <%= label_with_link(hostgroup, 1000, authorizer) %> </td>
|
||
<td>
|
||
<%= action_buttons(
|
||
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_delete_if_authorized(hash_for_hostgroup_path(:id => hostgroup), :confirm => warning_message(hostgroup))) %>
|
||
display_delete_if_authorized(hash_for_hostgroup_path(:id => hostgroup).merge(:auth_object => hostgroup, :authorizer => authorizer), :confirm => warning_message(hostgroup))) %>
|
||
</td>
|
||
</tr>
|
||
<% end %>
|
Also available in: Unified diff
fixes #812 - new permissions model, user group role and nest support, role filters for better granularity
Contributions from: