Revision acfbc458
Added by Marek Hulán about 10 years ago
app/views/compute_profiles/index.html.erb | ||
---|---|---|
</tr>
|
||
<% @compute_profiles.each do |compute_profile| %>
|
||
<tr>
|
||
<td><%= link_to_if_authorized h(compute_profile.name), hash_for_compute_profile_path(compute_profile)%></td>
|
||
<td><%= link_to_if_authorized h(compute_profile.name), hash_for_compute_profile_path(compute_profile).merge(:auth_object => compute_profile, :authorizer => authorizer, :auth_action => 'edit') %></td>
|
||
<td><%= action_buttons(
|
||
display_link_if_authorized(_('Edit'), hash_for_compute_profile_path(compute_profile)),
|
||
display_link_if_authorized(_('Rename'), hash_for_edit_compute_profile_path(compute_profile)),
|
||
display_delete_if_authorized(hash_for_compute_profile_path(compute_profile), :confirm => _('Delete %s?') % compute_profile.name))%>
|
||
display_link_if_authorized(_('Edit'), hash_for_compute_profile_path(compute_profile).merge(:auth_object => compute_profile, :authorizer => authorizer, :auth_action => 'edit')),
|
||
display_link_if_authorized(_('Rename'), hash_for_edit_compute_profile_path(compute_profile).merge(:auth_object => compute_profile, :authorizer => authorizer)),
|
||
display_delete_if_authorized(hash_for_compute_profile_path(compute_profile).merge(:auth_object => compute_profile, :authorizer => authorizer), :confirm => _('Delete %s?') % compute_profile.name))%>
|
||
</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: