3036: Work on migration code for 'name' and 'can_read' links to distinct collection...
[arvados.git] / services / api / app / views / nodes / index.html.erb
1 <table style="width:100%">
2   <tr class="contain-align-left">
3     <th>
4       status
5     </th><th>
6       sinfo
7     </th><th>
8       uuid
9     </th><th>
10       hostname
11     </th><th>
12       domain
13     </th><th>
14       ip address
15     </th><th>
16       created
17     </th><th>
18       startup delay
19     </th><th>
20       last ping
21     </th><th>
22       instance_id
23     </th>
24   </tr>
25
26   <% @objects.each do |o| %>
27
28   <tr class="node-status-<%= o.status %>">
29     <td class="node-status" data-showhide-selector="tr#extra-info-<%= o.uuid %>" style="cursor:pointer">
30       <%= o.status %>
31     </td><td class="node-slurm-state node-slurm-state-<%= @slurm_state[o.hostname] %>">
32       <%= @slurm_state[o.hostname] %>
33     </td><td>
34       <%= o.uuid %>
35     </td><td>
36       <%= o.hostname %>
37     </td><td>
38       <%= o.domain %>
39     </td><td>
40       <%= o.ip_address %>
41     </td><td>
42       <%= o.created_at %>
43     </td><td>
44       <%= distance_of_time_in_words(o.first_ping_at, o.created_at, true) if o.first_ping_at %>
45     </td><td>
46       <%= distance_of_time_in_words(o.last_ping_at, Time.now, true) + ' ago' if o.last_ping_at %>
47     </td><td>
48       <%= o.info[:ec2_instance_id] %>
49     </td>
50   </tr>
51
52   <% if  %>
53   <tr id="extra-info-<%= o.uuid %>" <%= 'data-showhide-default' unless o.info[:ec2_start_command] and !o.first_ping_at %>>
54     <td colspan="9">
55       <dl>
56       <% o.info.each do |k,v| %>
57       <dt><em><%= k %></em></dt>
58       <dd><%= v %></dd>
59       <% end %>
60       </dl>
61     </td>
62   </tr>
63
64   <% end %>
65   <% end %>
66 </table>