13200: remove git tag from gittaggers
[arvados.git] / apps / workbench / app / views / container_requests / _show_recent_rows.html.erb
1 <%# Copyright (C) The Arvados Authors. All rights reserved.
2
3 SPDX-License-Identifier: AGPL-3.0 %>
4
5 <%
6   containers = @objects.map(&:container_uuid).compact.uniq
7   preload_objects_for_dataclass(Container, containers) if containers.any?
8
9   workflows = @objects.collect {|o| o.properties[:template_uuid]}.compact.uniq
10   preload_objects_for_dataclass(Workflow, workflows) if workflows.any?
11
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?
15
16   objs = containers + workflows + owner_uuids
17   preload_links_for_objects objs if objs.any?
18 %>
19
20 <% @objects.sort_by { |obj| obj.created_at }.reverse.each do |obj| %>
21   <% wu = obj.work_unit obj.name %>
22
23   <tr data-object-uuid="<%= wu.uuid %>" class="cr-<%= wu.uuid %>">
24     <td>
25       <span class="label label-<%= wu.state_bootstrap_class %>"><%= wu.state_label %></span>
26     </td><td>
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 %>
28     </td><td>
29       <%= obj.description || '' %>
30     </td><td>
31       <%= link_to_if_arvados_object wu.template_uuid, friendly_name: true %>
32     </td><td>
33       <%= link_to_if_arvados_object wu.owner_uuid, friendly_name: true %>
34     </td><td>
35       <%= wu.created_at.to_s %>
36     </td><td>
37       <%= render partial: 'delete_object_button', locals: {object:obj} %>
38     </td>
39   </tr>
40 <% end %>