11652: Merge branch 'master' into 11652-recursive-contents
[arvados.git] / apps / workbench / app / views / work_units / _show_status.html.erb
1 <%
2     container_uuid = if @object.is_a?(Container) then @object.uuid elsif @object.is_a?(ContainerRequest) then @object.container_uuid end
3     if container_uuid
4       cols = ContainerRequest.columns.map(&:name) - %w(id updated_at mounts)
5       reqs = ContainerRequest.select(cols).where(requesting_container_uuid: container_uuid).results
6       load_preloaded_objects(reqs)
7
8       child_cs = reqs.map(&:requesting_container_uuid).uniq
9       child_cs += reqs.map(&:container_uuid).uniq
10       preload_objects_for_dataclass(Container, child_cs)
11
12       wu = current_obj.work_unit(name, child_objects=reqs)
13     else
14       wu = current_obj.work_unit(name)
15     end
16 %>
17
18 <div class="arv-log-refresh-control"
19      data-load-throttle="86486400000" <%# 1001 nights %>
20      ></div>
21 <%=
22    render(partial: 'work_units/show_component', locals: {wu: wu})
23 %>