%# Copyright (C) The Arvados Authors. All rights reserved.
SPDX-License-Identifier: AGPL-3.0 %>
<% component_frac = 1.0 / p.components.length %>
<% p.components.each do |k,c| %>
<% if c.is_a?(Hash) and c[:job] %>
<%= render partial: "job_progress", locals: {:j => c[:job], :scaleby => component_frac } %>
<% end %>
<% end %>