Merge remote-tracking branch 'origin/master' into 3605-improved-dashboard
[arvados.git] / apps / workbench / app / views / projects / _compute_node_status.html.erb
1
2 <div class="compute-summary-nodelist">
3     <% nodes.sort_by { |n| n.hostname || "" }.each do |n| %>
4       <% if n.crunch_worker_state.in? ["busy", "idle"] %>
5         <div class="compute-summary">
6           <a data-toggle="collapse" href="#detail_<%= n.hostname %>" class="compute-summary-head label label-<%= if n.crunch_worker_state == 'busy' then 'primary' else 'default' end %>">
7             <%= n.hostname %>
8           </a>
9           <div id="detail_<%= n.hostname %>" class="collapse compute-detail">
10             state: <%= n.crunch_worker_state %><br>
11             <% [:total_cpu_cores, :total_ram_mb, :total_scratch_mb].each do |i| %>
12               <%= i.to_s.gsub '_', ' ' %>: <%= n.info[i] %><br>
13             <% end %>
14           </div>
15         </div>
16       <% end %>
17     <% end %>
18 </div>