<%= _('Name') %> <%= _('Type') %> <%= _('State') %> <%= _('Actions') %> <% @vms.each do |vm| %> <% view_path = hash_for_compute_resource_vm_path(compute_resource_id: @compute_resource, id: vm.identity).merge(auth_object: @compute_resource.id, auth_action: 'view', authorizer: authorizer) delete_link = display_delete_if_authorized(hash_for_compute_resource_vm_path(compute_resource_id: @compute_resource, id: vm.identity).merge(auth_object: @compute_resource, authorizer: authorizer)) %> <%= link_to_if_authorized vm.name, view_path %> <%= vm.pretty_machine_type %> <%= vm.status.downcase %> <%= action_buttons(vm_power_action(vm, authorizer), vm_import_action(vm),vm_associate_link(vm), delete_link) %> <% end %>