<% title _("Compute Resources") %>
<% title_actions display_link_if_authorized(_("New Compute Resource"), hash_for_new_compute_resource_path),
                 documentation_button('5.2ComputeResources') %>

<table class="table table-bordered table-striped">
  <thead>
    <tr>
      <th><%= sort :name, :as => s_("ComputeResource|Name") %></th>
      <th><%= sort :type, :as => _("Type") %></th>
      <th></th>
    </tr>
  </thead>
  <tbody>
    <% @compute_resources.each do |compute| %>
      <tr>
        <td><%= link_to compute.name, compute %></td>
        <td><%= compute.provider_friendly_name %></td>
        <td>
          <%= action_buttons(link_to_if_authorized(_('Edit'), hash_for_edit_compute_resource_path(compute).merge(:auth_object => compute, :authorizer => authorizer)),
                            display_delete_if_authorized(hash_for_compute_resource_path(:id => compute).merge(:auth_object => compute, :authorizer => authorizer), :data => { :confirm => _("Delete %s?") % compute.name })) %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

<%= will_paginate_with_info @compute_resources %>
