Revision 8d7ea035
Added by Alon Goldboim almost 9 years ago
app/views/compute_resources_vms/index/_ec2.html.erb | ||
---|---|---|
<table class="table table-bordered" data-table="inline">
|
||
<thead>
|
||
<thead>
|
||
<tr>
|
||
<th><%= _('Name') %></th>
|
||
<th><%= _('DNS') %></th>
|
||
<th><%= _('Type') %></th>
|
||
<th><%= _('State') %></th>
|
||
<th></th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<% @vms.each do |vm| %>
|
||
<tr>
|
||
<th><%= _('Name') %></th>
|
||
<th><%= _('DNS') %></th>
|
||
<th><%= _('Type') %></th>
|
||
<th><%= _('State') %></th>
|
||
<th></th>
|
||
<td><%= link_to_if_authorized vm.name, hash_for_compute_resource_vm_path(:compute_resource_id => @compute_resource, :id => vm.identity).merge(:auth_object => @compute_resource, :auth_action => 'view', :authorizer => authorizer) %></td>
|
||
<td><%= vm.dns %></td>
|
||
<td><%= vm.flavor_id %></td>
|
||
<td>
|
||
<span <%= vm_power_class(vm.ready?) %>>
|
||
<%= vm_state(vm) %></span>
|
||
</td>
|
||
<td>
|
||
<%= unless vm.state == 'terminated' or vm.state == 'pending'
|
||
action_buttons(vm_power_action(vm, authorizer),
|
||
display_delete_if_authorized(hash_for_compute_resource_vm_path(:compute_resource_id => @compute_resource, :id => vm.id).merge(:auth_object => @compute_resource, :authorizer => authorizer)))
|
||
end
|
||
%>
|
||
</td>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<% @vms.each do |vm| %>
|
||
<tr>
|
||
<td><%= link_to_if_authorized vm.name, hash_for_compute_resource_vm_path(:compute_resource_id => @compute_resource, :id => vm.identity).merge(:auth_object => @compute_resource, :auth_action => 'view', :authorizer => authorizer) %></td>
|
||
<td><%= vm.dns %></td>
|
||
<td><%= vm.flavor_id %></td>
|
||
<td>
|
||
<span <%= vm_power_class(vm.ready?) %>>
|
||
<%= vm_state(vm) %></span>
|
||
</td>
|
||
<td>
|
||
<%= unless vm.state == 'terminated' or vm.state == 'pending'
|
||
action_buttons(vm_power_action(vm, authorizer),
|
||
display_delete_if_authorized(hash_for_compute_resource_vm_path(:compute_resource_id => @compute_resource, :id => vm.id).merge(:auth_object => @compute_resource, :authorizer => authorizer)))
|
||
end
|
||
%>
|
||
</td>
|
||
</tr>
|
||
<% end %>
|
||
</tbody>
|
||
</table>
|
||
<% end %>
|
||
</tbody>
|
Also available in: Unified diff
Fixes #11013 - Added common table css classes to the tables