1 <%# Copyright (C) The Arvados Authors. All rights reserved.
3 SPDX-License-Identifier: AGPL-3.0 %>
6 containers = @objects.map(&:container_uuid).compact.uniq
7 preload_objects_for_dataclass(Container, containers) if containers.any?
9 workflows = @objects.collect {|o| o.properties[:template_uuid]}.compact.uniq
10 preload_objects_for_dataclass(Workflow, workflows) if workflows.any?
12 owner_uuids = @objects.map(&:owner_uuid).compact.uniq
13 preload_objects_for_dataclass(User, owner_uuids) if owner_uuids.any?
14 preload_objects_for_dataclass(Group, owner_uuids) if owner_uuids.any?
16 objs = containers + workflows + owner_uuids
17 preload_links_for_objects objs if objs.any?
20 <% @objects.sort_by { |obj| obj.created_at }.reverse.each do |obj| %>
21 <% wu = obj.work_unit obj.name %>
23 <tr data-object-uuid="<%= wu.uuid %>" class="cr-<%= wu.uuid %>">
25 <span class="label label-<%= wu.state_bootstrap_class %>"><%= wu.state_label %></span>
27 <%= link_to_if_arvados_object obj, friendly_name: true, link_text: if obj.name && !obj.name.empty? then obj.name else obj.uuid end %>
29 <%= obj.description || '' %>
31 <%= link_to_if_arvados_object wu.template_uuid, friendly_name: true %>
33 <%= link_to_if_arvados_object wu.owner_uuid, friendly_name: true %>
35 <%= wu.created_at.to_s %>
37 <%= render partial: 'delete_object_button', locals: {object:obj} %>