1 <%# Copyright (C) The Arvados Authors. All rights reserved.
3 SPDX-License-Identifier: AGPL-3.0 %>
5 <% outgoing = Link.where(tail_uuid: @object.uuid) %>
6 <% incoming = Link.where(head_uuid: @object.uuid) %>
10 preload_head_uuids = []
11 outgoing.results.each do |link|
12 preload_uuids << link.uuid
13 preload_uuids << link.head_uuid
14 preload_head_uuids << link.head_uuid
16 preload_collections_for_objects preload_uuids
17 preload_links_for_objects preload_head_uuids
20 <% if (outgoing | incoming).any? %>
21 <table class="table topalign">
41 <% (outgoing | incoming).each do |link| %>
44 <%= render partial: 'show_object_button', locals: { object: link, size: 'xs' } %>
45 <span class="arvados-uuid"><%= link.uuid %></span>
47 <td><%= link.link_class %></td>
48 <td><%= link.name %></td>
49 <td><%= link.tail_uuid == object.uuid ? 'this' : (render partial: 'application/arvados_attr_value', locals: { obj: link, attr: "tail_uuid", attrvalue: link.tail_uuid, editable: false }) %></td>
50 <td><%= link.head_uuid == object.uuid ? 'this' : (render partial: 'application/arvados_attr_value', locals: { obj: link, attr: "head_uuid", attrvalue: link.head_uuid, editable: false }) %></td>
51 <td><%= render partial: 'application/arvados_attr_value', locals: { obj: link, attr: "properties", attrvalue: link.properties, editable: false } %></td>
57 <span class="deemphasize">
58 (No metadata links found)