Sha256: faf2c542a3767e47395c435fdd03917bcb55e38b3b3437d4c890a874e4b27b4e

Contents?: true

Size: 1.06 KB

Versions: 5

Compression:

Stored size: 1.06 KB

Contents

<table class="table table-bordered" data-table='inline'>
  <thead>
  <tr>
    <th><%= _('Name') -%></th>
    <th><%= _('CPUs') -%></th>
    <th><%= _('Memory') -%></th>
    <th><%= _('Power') -%></th>
    <th></th>
  </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) %></td>
      <td><%= vm.cpus %></td>
      <td> <%= number_to_human_size vm.memory %></td>
      <td> <span <%= vm_power_class(vm.ready?) %>> <%= vm_state(!vm.ready?) %></span> </td>
      <td>
        <%= action_buttons(vm_power_action(vm),
                           show_console_action(vm.ready?, display_link_if_authorized("Console", hash_for_console_compute_resource_vm_path(:compute_resource_id => @compute_resource, :id => vm.identity))),
                           display_delete_if_authorized(hash_for_compute_resource_vm_path(:compute_resource_id => @compute_resource, :id => vm.identity))) %>
      </td>

    </tr>
  <% end -%>
  </tbody>
</table>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_discovery-1.0.0 test/foreman_app/app/views/compute_resources_vms/index/_vmware.html.erb
foreman_discovery-1.0.0.rc4 test/foreman_app/app/views/compute_resources_vms/index/_vmware.html.erb
foreman_discovery-1.0.0.rc3 test/foreman_app/app/views/compute_resources_vms/index/_vmware.html.erb
foreman_discovery-1.0.0.rc2 test/foreman_app/app/views/compute_resources_vms/index/_vmware.html.erb
foreman_discovery-1.0.0.rc1 test/foreman_app/app/views/compute_resources_vms/index/_vmware.html.erb