8784: Fix test for latest firefox.
[arvados.git] / apps / workbench / app / views / projects / _compute_node_status.html.erb
1 <h4>Node status</h4>
2 <div class="compute-summary-nodelist">
3     <% nodes.each do |n| %>
4         <div class="compute-summary">
5           <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 %>">
6             <%= n.hostname %>
7           </a>
8           <div id="detail_<%= n.hostname %>" class="collapse compute-detail">
9             state: <%= n.crunch_worker_state %><br>
10             <% [:total_cpu_cores, :total_ram_mb, :total_scratch_mb].each do |i| %>
11               <%= i.to_s.gsub '_', ' ' %>: <%= n.properties[i] %><br>
12             <% end %>
13           </div>
14         </div>
15     <% end %>
16 </div>