Sha256: 9682fbe4f6b2736055fdc37a643adbd68b3c7969edd492415b1c55828b37b6c4

Contents?: true

Size: 1.06 KB

Versions: 6

Compression:

Stored size: 1.06 KB

Contents

<table class="table table-bordered" data-table='inline'>
  <thead>
    <tr>
      <th><%= _('Name') %></th>
      <th><%= _('Image') %></th>
      <th><%= _('Type') %></th>
      <th><%= _('Region') %></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).merge(:auth_object => @compute_resource, :authorizer => authorizer) %></td>
      <td><%= vm.image.name if vm.image.present? %></td>
      <td><%= vm.flavor.name %></td>
      <td><%= vm.region.name %></td>
      <td> <span <%= vm_power_class(vm.ready?) %>> <%= vm_state(vm) %></span> </td>
      <td>
        <%= 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))) %>
      </td>
    </tr>
  <% end %>
</table>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
foreman_digitalocean-0.2.1 app/views/compute_resources_vms/index/_digitalocean.html.erb
foreman_digitalocean-0.2.0 app/views/compute_resources_vms/index/_digitalocean.html.erb
foreman_digitalocean-0.1.0 app/views/compute_resources_vms/index/_digitalocean.html.erb
foreman_digitalocean-0.0.3 app/views/compute_resources_vms/index/_digitalocean.html.erb
foreman_digitalocean-0.0.2 app/views/compute_resources_vms/index/_digitalocean.html.erb
foreman_digitalocean-0.0.1 app/views/compute_resources_vms/index/_digitalocean.html.erb