Project

General

Profile

« Previous | Next » 

Revision 82e47ae0

Added by Amos Benari about 12 years ago

  • ID 82e47ae0f86994702c3a084cc6150250a81034ee

updates UI to bootstrap v2

View differences:

app/views/compute_resources/vms/index/_libvirt.html.erb
<table class="list">
<table class="table table-bordered">
<tr>
<thead>
<th> Name </th>
......
<td> <%= number_to_human_size vm.memory_size*1024 %> </td>
<td <%= vm_power_class(vm.ready?)%>> <%= vm_state(!vm.ready?) %> </td>
<td>
<%= vm_power_action vm %>
<%= display_link_if_authorized "Delete", hash_for_compute_resource_vm_path(:compute_resource_id => @compute_resource, :id => vm.uuid).merge(:auth_action => :destroy), :confirm => 'Are you sure?', :method => :delete, :class => "label important" %>
<%= action_buttons(vm_power_action(vm),
display_delete_if_authorized(hash_for_compute_resource_vm_path(:compute_resource_id => @compute_resource, :id => vm.uuid))) %>
</td>
</tr>
<% end -%>

Also available in: Unified diff