<% content_for :tab_line_buttons do %> <%= link_to( choose_projects_path( title: 'Copy to project...', my_root_selectable: true, action_name: 'Copy', action_href: actions_path, action_method: 'post', action_data: { copy_selections_into_project: true, selection: @name_link.andand.uuid || @object.uuid, selection_param: 'uuid', success: 'redirect-to-created-object' }.to_json), { class: "btn btn-sm btn-primary arv-move-to-project", remote: true, method: 'get' }) do %> Copy to project... <% end %> <% end %>

<%= @name_link.andand.name || @object.uuid %>

Content hash:
<%= @object.uuid %>

<%= render partial: "show_source_summary" %>

Activity

<% name_or_object = @name_link.andand.uuid ? @name_link : @object %> <% if name_or_object.created_at and not @logs.andand.any? %>

Created: <%= name_or_object.created_at.to_s(:long) %>

Last modified: <%= name_or_object.modified_at.to_s(:long) %> by <%= link_to_if_arvados_object name_or_object.modified_by_user_uuid, friendly_name: true %>

<% else %> <%= render_arvados_object_list_start(@logs, 'Show all activity', logs_path(filters: [['object_uuid','=',name_or_object.uuid]].to_json)) do |log| %>

<%= time_ago_in_words(log.event_at) rescue 'unknown time' %> ago: <%= log.summary %> <% if log.object_uuid %> <%= link_to_if_arvados_object log.object_uuid, link_text: raw('') %> <% end %>

<% end %> <% end %>

Sharing and permissions

<%= render partial: 'sharing_button' %>
<% if @projects.andand.any? %>

Included in projects:
<%= render_arvados_object_list_start(@projects, 'Show all projects', links_path(filters: [['head_uuid', '=', @object.uuid], ['link_class', '=', 'name']].to_json)) do |project| %> <%= link_to_if_arvados_object(project, friendly_name: true) %>
<% end %>

<% end %> <% if @permissions.andand.any? %>

Readable by:
<%= render_arvados_object_list_start(@permissions, 'Show all permissions', links_path(filters: [['head_uuid', '=', @object.uuid], ['link_class', '=', 'permission']].to_json)) do |link| %> <%= link_to_if_arvados_object(link.tail_uuid, friendly_name: true) %>
<% end %>

<% end %>
<% content_for :tab_line_buttons do %> Collection storage status: <%= render partial: 'toggle_persist', locals: { uuid: @object.uuid, current_state: (@is_persistent ? 'persistent' : 'cache') } %> <% end %> <%= render file: 'application/show.html.erb', locals: local_assigns %>