Project

General

Profile

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

foreman-docker / app / views / containers / _list.html.erb @ ab73d5cf

1
<table class="table table-bordered table-striped table-condensed" data-table="inline">
2
  </thead>
3
    <tr>
4
      <th class="text-center"><%= sort :name, :as => _("Name") %></th>
5
      <th class="hidden-tablet hidden-xs text-center"><%= sort :status, :as => _("Status") %></th>
6
      <th class="hidden-tablet hidden-xs text-center"><%= sort :image, :as => _("Image") %></th>
7
      <th class="hidden-tablet hidden-xs text-center"><%= sort :command, :as => _("Command") %></th>
8
      <th class="hidden-tablet hidden-xs text-center"><%= sort :uptime, :as => _("Uptime") %></th>
9
      <th class="hidden-tablet hidden-xs text-center"><%= sort :running_on, :as => _("Running on") %></th>
10
      <th class="hidden-tablet hidden-xs text-center"><%= sort :managed , :as => _("Managed") %></th>
11
      <th></th>
12
    </tr>
13
  </thead>
14

    
15
  <% containers.each do |container| %>
16
    <tr>
17
      <td class="ellipsis text-center"><%= link_to_container(container, resource) %></td>
18
      <td class="hidden-tablet hidden-xs text-center"><span <%= vm_power_class(container.ready?) %>><%= vm_state(container) %></span></td>
19
      <td class="hidden-tablet hidden-xs text-center"><%= trunc(container.image_friendly_name) %></td>
20
      <td class="hidden-tablet hidden-xs text-center"><%= trunc(container.command) %></td>
21
      <td class="hidden-tablet hidden-xs text-center"><span class="glyphicon glyphicon-time"></span> <%= container.ready? ? time_ago_in_words(container.started_at) : "N/A" %></td>
22
      <td class="hidden-tablet hidden-xs text-center"><%= link_to resource, compute_resource_path(resource)%> </td>
23
      <td class="hidden-tablet hidden-xs text-center"><%= managed_icon(container, resource) %></td>
24
      <% @compute_resource = resource %>
25
      <td><%= action_buttons(vm_power_action(container),
26
                             display_delete_if_authorized(hash_for_container_path(:compute_resource_id => resource,
27
                                                          :id => container.id).
28
                                                          merge(:auth_object => resource, :auth_action => 'destroy',
29
                                                          :authorizer => authorizer),
30
                                                          :confirm => _("Delete %s?") % container.name)) %></td>
31
    </tr>
32
  <% end %>
33
</table>
34

    
35
<!-- To be replaced by will_paginate_with_info after 1.6 support is deprecated -->
36
<%= page_entries_info containers %>
37
<%= will_paginate containers %>