<table class="table table-bordered" data-table='inline'>
  <thead>
    <tr>
      <th><%= _('Name') %></th>
      <th><%= _('Type') %></th>
      <th><%= _('Tenant') %></th>
      <th><%= _('State') %></th>
      <th></th>
    </tr>
  </thead>
  <% @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) %></td>
      <td><%= vm.flavor_with_object %></td>
      <td><%= vm.tenant %></td>
      <td> <span <%= vm_power_class(vm.ready?) %>> <%= vm_state(vm) %></span> </td>
      <td>
        <%= action_buttons(*available_actions(vm)) %>
      </td>
    </tr>
  <% end %>
</table>
