Additional permissions

<% if not @share_links.any? %> (No additional permissions) <% else %> Also shared with: <% @share_links.andand.each do |link| %>
<%= link_to_if_arvados_object link.tail_uuid, friendly_name: true %> <% end %> <% end %>

<% if @object.owner %>
Inherited permissions

Permissions for this project are inherited by the owner or parent project:

<% if User == resource_class_for_uuid(@object.owner_uuid) %> <% else %> <% end %> <%= link_to_if_arvados_object @object.owner_uuid, friendly_name: true %> <%= button_to('Move to...', choose_projects_path( title: 'Move to...', editable: true, action_name: 'Move', action_href: project_path(@object.uuid), action_method: 'put', action_data: {selection_param: 'project[owner_uuid]', success: 'page-refresh'}.to_json), { class: "btn btn-default btn-xs arv-move-to-project", remote: true, method: 'get' }) %>

<% end %>