Project

General

Profile

Download (1.31 KB) Statistics
| Branch: | Tag: | Revision:
<% title _('Compute profiles') %>

<% title_actions display_link_if_authorized(_('New Compute Profile'), hash_for_new_compute_profile_path), help_path %>
<table class="table table-bordered table-striped table-two-pane">
<thead>
<tr>
<th><%= sort :name %></th>
<th></th>
</tr>
</thead>
<tbody>
<% @compute_profiles.each do |compute_profile| %>
<tr>
<td><%= link_to_if_authorized trunc_with_tooltip(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).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 %>
</tbody>
</table>

<%= will_paginate_with_info @compute_profiles %>
(3-3/5)