Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / apps / workbench / app / views / work_units / _show_status.html.erb
1 <%# Copyright (C) The Arvados Authors. All rights reserved.
2
3 SPDX-License-Identifier: AGPL-3.0 %>
4
5 <%
6     container_uuid = if @object.is_a?(Container) then @object.uuid elsif @object.is_a?(ContainerRequest) then @object.container_uuid end
7     if container_uuid
8       cols = ContainerRequest.columns.map(&:name) - %w(id updated_at mounts runtime_token)
9       reqs = ContainerRequest.select(cols).where(requesting_container_uuid: container_uuid).results
10       load_preloaded_objects(reqs)
11
12       child_cs = reqs.map(&:requesting_container_uuid).uniq
13       child_cs += reqs.map(&:container_uuid).uniq
14       preload_objects_for_dataclass(Container, child_cs)
15
16       wu = current_obj.work_unit(name, child_objects=reqs)
17     else
18       wu = current_obj.work_unit(name)
19     end
20 %>
21
22 <div class="arv-log-refresh-control"
23      data-load-throttle="86486400000" <%# 1001 nights %>
24      ></div>
25 <%=
26    render(partial: 'work_units/show_component', locals: {wu: wu})
27 %>