1 <%# Copyright (C) The Arvados Authors. All rights reserved.
3 SPDX-License-Identifier: AGPL-3.0 %>
6 <div class="compute-summary-nodelist">
7 <% nodes.each do |n| %>
8 <div class="compute-summary">
9 <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 %>">
12 <div id="detail_<%= n.hostname %>" class="collapse compute-detail">
13 state: <%= n.crunch_worker_state %><br>
14 <% [:total_cpu_cores, :total_ram_mb, :total_scratch_mb].each do |i| %>
15 <%= i.to_s.gsub '_', ' ' %>: <%= n.properties[i] %><br>