1 <% outgoing = Link.where(tail_uuid: @object.uuid) %>
2 <% incoming = Link.where(head_uuid: @object.uuid) %>
6 preload_head_uuids = []
7 outgoing.results.each do |link|
8 preload_uuids << link.uuid
9 preload_uuids << link.head_uuid
10 preload_head_uuids << link.head_uuid
12 preload_collections_for_objects preload_uuids
13 preload_links_for_objects preload_head_uuids
16 <% if (outgoing | incoming).any? %>
17 <table class="table topalign">
37 <% (outgoing | incoming).each do |link| %>
40 <%= render partial: 'show_object_button', locals: { object: link, size: 'xs' } %>
41 <span class="arvados-uuid"><%= link.uuid %></span>
43 <td><%= link.link_class %></td>
44 <td><%= link.name %></td>
45 <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>
46 <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>
47 <td><%= render partial: 'application/arvados_attr_value', locals: { obj: link, attr: "properties", attrvalue: link.properties, editable: false } %></td>
53 <span class="deemphasize">
54 (No metadata links found)