Project

General

Profile

Download (1.08 KB) Statistics
| Branch: | Tag: | Revision:

foreman-docker / app / views / compute_resources_vms / index / _docker.html.erb @ e6eb1c48

1
<table class="table table-bordered" data-table='inline'>
2
  <thead>
3
    <tr>
4
      <th><%= _('Name')   %></th>
5
      <th><%= _('Image')  %></th>
6
      <th><%= _('CPUs')   %></th>
7
      <th><%= _('Memory') %></th>
8
      <th><%= _('Status') %></th>
9
      <th><%= _('Power')  %></th>
10
      <th></th>
11
    </tr>
12
  </thead>
13
  <% @vms.each do |vm| %>
14
    <tr>
15
      <% name = vm.name || (!vm.attributes['names'].empty? && vm.attributes['names'].first) %>
16
      <td><%= link_to_if_authorized name, hash_for_compute_resource_vm_path(:compute_resource_id => @compute_resource, :id => vm.identity) %></td>
17
      <td><%= vm.image %></td>
18
      <td><%= vm.cores %></td>
19
      <td> <%= number_to_human_size vm.memory %> </td>
20
      <td> <%= vm.attributes['status'] %> </td>
21
      <td> <span <%= vm_power_class(vm.ready?) %>> <%= vm_state(vm) %></span> </td>
22
      <td>
23
        <%= action_buttons(container_power_action(vm),
24
                           display_delete_if_authorized(hash_for_compute_resource_vm_path(:compute_resource_id => @compute_resource, :id => vm.id))) %>
25
      </td>
26

    
27
    </tr>
28
  <% end %>
29
</table>