Merge branch '17150-system-root-token'
[arvados.git] / apps / workbench / app / views / application / _show_advanced_metadata.html.erb
index 68e4298cc97d0dc9d290b7126dc2d8a64d644402..062dba9a996cc2f4059673397ab8cd9be277db1a 100644 (file)
@@ -1,6 +1,22 @@
+<%# Copyright (C) The Arvados Authors. All rights reserved.
+
+SPDX-License-Identifier: AGPL-3.0 %>
+
 <% 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? %>
 <table class="table topalign">
   <colgroup>