% outgoing = Link.where(tail_uuid: @object.uuid) %> <% incoming = Link.where(head_uuid: @object.uuid) %> <% preload_uuids = [] preload_head_uuids = [] outgoing.results.each do |link| preload_uuids << link.uuid preload_uuids << link.head_uuid preload_head_uuids << link.head_uuid end preload_collections_for_objects preload_uuids preload_links_for_objects preload_head_uuids %> <% if (outgoing | incoming).any? %>
link_class | name | tail | head | properties | |
---|---|---|---|---|---|
<%= render partial: 'show_object_button', locals: { object: link, size: 'xs' } %> <%= link.uuid %> | <%= link.link_class %> | <%= link.name %> | <%= link.tail_uuid == object.uuid ? 'this' : (render partial: 'application/arvados_attr_value', locals: { obj: link, attr: "tail_uuid", attrvalue: link.tail_uuid, editable: false }) %> | <%= link.head_uuid == object.uuid ? 'this' : (render partial: 'application/arvados_attr_value', locals: { obj: link, attr: "head_uuid", attrvalue: link.head_uuid, editable: false }) %> | <%= render partial: 'application/arvados_attr_value', locals: { obj: link, attr: "properties", attrvalue: link.properties, editable: false } %> |