foreman/app/views/compute_resources/vms/index/_vmware.html.erb @ 82e47ae0
82e47ae0 | Amos Benari | <table class="table table-bordered">
|
|
4213d2be | Ohad Levy | <tr>
|
|
<thead>
|
|||
<th>Name</th>
|
|||
<th> CPUs</th>
|
|||
<th> Memory</th>
|
|||
<th> Power</th>
|
|||
<th></th>
|
|||
</thead>
|
|||
</tr>
|
|||
<% @compute_resource.vms.each do |vm| -%>
|
|||
<tr>
|
|||
<td><%= vm.name %></td>
|
|||
<td><%= vm.cpus %></td>
|
|||
<td> <%= number_to_human_size vm.memory %></td>
|
|||
<td <%= vm_power_class(vm.ready?) %>> <%= vm_state(!vm.ready?) %> </td>
|
|||
<td>
|
|||
82e47ae0 | Amos Benari | <%= action_buttons(vm_power_action(vm),
|
|
display_link_if_authorized("Console", hash_for_console_compute_resource_vm_path(:compute_resource_id => @compute_resource, :id => vm.id)),
|
|||
display_delete_if_authorized(hash_for_compute_resource_vm_path(:compute_resource_id => @compute_resource, :id => vm.id))) %>
|
|||
4213d2be | Ohad Levy | </td>
|
|
</tr>
|
|||
<% end -%>
|
|||
</table>
|