Project

General

Profile

Download (1.05 KB) Statistics
| Branch: | Tag: | Revision:
c4f7f6f2 Ohad Levy
<table class="table table-bordered" data-table="inline">
<thead>
<tr>
4d4557e9 Joseph Magen
<th><%= _('Name') %></th>
<th><%= _('DNS') %></th>
<th><%= _('Type') %></th>
<th><%= _('State') %></th>
334d0359 Amos Benari
<th></th>
c4f7f6f2 Ohad Levy
</tr>
</thead>
4d4557e9 Joseph Magen
<% @vms.each do |vm| %>
334d0359 Amos Benari
<tr>
acfbc458 Marek Hulan
<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>
1c3c4623 Romain Vrignaud
<td><%= vm.dns %></td>
334d0359 Amos Benari
<td><%= vm.flavor_id %></td>
a6ce3c99 Daniel Lobato
<td> <span <%= vm_power_class(vm.ready?) %>> <%= vm_state(vm) %></span> </td>
334d0359 Amos Benari
<td>
cc54f546 Romain Vrignaud
<%= unless vm.state == 'terminated' or vm.state == 'pending'
acfbc458 Marek Hulan
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)))
cc54f546 Romain Vrignaud
end
%>
334d0359 Amos Benari
</td>
</tr>
4d4557e9 Joseph Magen
<% end %>
334d0359 Amos Benari
</table>