Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / apps / workbench / app / views / projects / _compute_node_status.html.erb
1 <%# Copyright (C) The Arvados Authors. All rights reserved.
2
3 SPDX-License-Identifier: AGPL-3.0 %>
4
5 <h4>Node status</h4>
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 %>">
10             <%= n.hostname %>
11           </a>
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>
16             <% end %>
17           </div>
18         </div>
19     <% end %>
20 </div>