-
Notifications
You must be signed in to change notification settings - Fork 982
/
index.html.erb
27 lines (24 loc) · 1.21 KB
/
index.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<%= javascript 'compute_resource' %>
<% title _('Compute profiles') %>
<% title_actions new_link(_('Create Compute Profile')),
documentation_button('5.2.2UsingComputeProfiles') %>
<table class="<%= table_css_classes 'table-two-pane table-fixed' %>">
<thead>
<tr>
<th class="col-md-11"><%= sort :name %></th>
<th><%= _("Actions") %></th>
</tr>
</thead>
<tbody>
<% @compute_profiles.each do |compute_profile| %>
<tr>
<td class="ellipsis"><%= link_to_if_authorized 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(_('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), :data => { :confirm => _('Delete %s?') % compute_profile.name }))%>
</td>
</tr>
<% end %>
</tbody>
</table>
<%= will_paginate_with_info @compute_profiles %>