1 <%# Copyright (C) The Arvados Authors. All rights reserved.
3 SPDX-License-Identifier: AGPL-3.0 %>
6 container_uuid = if @object.is_a?(Container) then @object.uuid elsif @object.is_a?(ContainerRequest) then @object.container_uuid end
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)
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)
16 wu = current_obj.work_unit(name, child_objects=reqs)
18 wu = current_obj.work_unit(name)
22 <div class="arv-log-refresh-control"
23 data-load-throttle="86486400000" <%# 1001 nights %>
26 render(partial: 'work_units/show_component', locals: {wu: wu})