foreman/app/views/compute_resources/index.html.erb @ acfbc458
288c5c13 | Joseph Magen | <% title _("Compute Resources") %>
|
|
93117958 | Bryan Kearney | <% title_actions display_link_if_authorized(_("New Compute Resource"), hash_for_new_compute_resource_path), help_path %>
|
|
334d0359 | Amos Benari | ||
82e47ae0 | Amos Benari | <table class="table table-bordered table-striped">
|
|
334d0359 | Amos Benari | <tr>
|
|
74e0b0e3 | Lukas Zapletal | <th><%= sort :name, :as => s_("ComputeResource|Name") %></th>
|
|
93117958 | Bryan Kearney | <th><%= sort :type, :as => _("Type") %></th>
|
|
334d0359 | Amos Benari | <th></th>
|
|
</tr>
|
|||
<% @compute_resources.each do |compute| %>
|
|||
<tr>
|
|||
<td><%= link_to compute.name, compute %></td>
|
|||
33468218 | Ohad Levy | <td><%= compute.provider_friendly_name %></td>
|
|
334d0359 | Amos Benari | <td>
|
|
acfbc458 | Marek Hulan | <%= 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), :confirm => _("Delete %s?") % compute.name)) %>
|
|||
334d0359 | Amos Benari | </td>
|
|
</tr>
|
|||
<% end %>
|
|||
</table>
|
|||
aa3d0897 | Amos Benari | ||
<%= page_entries_info @compute_resources %>
|
|||
<%= will_paginate @compute_resources %>
|