Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / apps / workbench / app / views / projects / _compute_node_status.html.erb
index 528d0ea0eb1ddc195f5d8dee4f9b4074b761676d..3de2ab67ab5d6cf7a34c84d4effe4de066354907 100644 (file)
@@ -1,7 +1,10 @@
+<%# Copyright (C) The Arvados Authors. All rights reserved.
 
+SPDX-License-Identifier: AGPL-3.0 %>
+
+<h4>Node status</h4>
 <div class="compute-summary-nodelist">
-    <% nodes.sort_by { |n| n.hostname || "" }.each do |n| %>
-      <% if n.crunch_worker_state.in? ["busy", "idle"] %>
+    <% nodes.each do |n| %>
         <div class="compute-summary">
           <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 %>">
             <%= n.hostname %>
@@ -9,10 +12,9 @@
           <div id="detail_<%= n.hostname %>" class="collapse compute-detail">
             state: <%= n.crunch_worker_state %><br>
             <% [:total_cpu_cores, :total_ram_mb, :total_scratch_mb].each do |i| %>
-              <%= i.to_s.gsub '_', ' ' %>: <%= n.info[i] %><br>
+              <%= i.to_s.gsub '_', ' ' %>: <%= n.properties[i] %><br>
             <% end %>
           </div>
         </div>
-      <% end %>
     <% end %>
 </div>