foreman/app/views/compute_resources_vms/index/_ec2.html.erb @ a89c40ce
82e47ae0 | Amos Benari | <table class="table table-bordered">
|
|
334d0359 | Amos Benari | <tr>
|
|
<thead>
|
|||
<th>Name</th>
|
|||
<th>DNS</th>
|
|||
<th>Type</th>
|
|||
<th>State</th>
|
|||
<th></th>
|
|||
</thead>
|
|||
</tr>
|
|||
<% @compute_resource.vms.each do |vm| -%>
|
|||
<tr>
|
|||
a89c40ce | Ohad Levy | <td><%= link_to_if_authorized vm.name, hash_for_compute_resource_vm_path(:compute_resource_id => @compute_resource, :id => vm.identity) %></td>
|
|
334d0359 | Amos Benari | <td><%= vm.dns_name %></td>
|
|
<td><%= vm.flavor_id %></td>
|
|||
<td <%= vm_power_class(vm.ready?)%>> <%= vm_state(!vm.ready?) %> </td>
|
|||
<td>
|
|||
82e47ae0 | Amos Benari | <%= action_buttons(vm_power_action(vm),
|
|
display_delete_if_authorized(hash_for_compute_resource_vm_path(:compute_resource_id => @compute_resource, :id => vm.id))) %>
|
|||
334d0359 | Amos Benari | </td>
|
|
</tr>
|
|||
<% end -%>
|
|||
</table>
|