Add "Copy selections to current folder" button to selection drop-down.
[arvados.git] / apps / workbench / app / views / folders / show.html.erb
index bacf6693cba89bbf9a16b4727827ce9a24f0346c..200b0f36e39bb1e562965c76287928bf813667dc 100644 (file)
         -->
        <div style="height:0.5em;"></div>
         <p>Owner: <%= link_to_if_arvados_object @object.owner_uuid, friendly_name: true %></p>
+        <% if @share_links.any? %>
+        <p>Shared with:
+          <% @share_links.andand.each do |link| %>
+          <br /><%= link_to_if_arvados_object link.tail_uuid, friendly_name: true %>
+          <% end %>
+        </p>
+        <% end %>
       </div>
     </div>
   </div>
               <col width="15%" />
               <col width="29%" />
             </colgroup>
-            <% @objects.each do |object| %>
+            <% @objects_and_names.each do |object, name_link| %>
             <tr>
               <td>
                 <%= render :partial => "selection_checkbox", :locals => {object: object} %>
                 <%= render :partial => "show_object_button", :locals => {object: object, size: 'xs'} %>
               </td>
               <td>
-                <% name_link = @objects.links_for(object, 'name').first || Link.new(link_class: "name", owner_uuid: @object.uuid, tail_uuid: @object.uuid, head_uuid: object.uuid, name: "") %>
                 <%= render_editable_attribute name_link, 'name', nil, { 'data-emptytext' => "Unnamed #{object.class}" } %>
               </td>
               <td>