<% 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">
  <tr>
    <th><%= sort :name %></th>
    <th></th>
  </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><%= 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))%>
      </td>
    </tr>
  <% end %>
</table>

<%= page_entries_info @compute_profiles %>
<%= will_paginate     @compute_profiles %>

