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 %>">
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>