X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3f9aa0401350fc8a41a2dce81151da4aa050e771..274ca7a6c2f1f600de4242eee6cb4e8465d4440c:/apps/workbench/app/views/collections/show.html.erb diff --git a/apps/workbench/app/views/collections/show.html.erb b/apps/workbench/app/views/collections/show.html.erb index a51c450ea0..a80cf3985d 100644 --- a/apps/workbench/app/views/collections/show.html.erb +++ b/apps/workbench/app/views/collections/show.html.erb @@ -1,16 +1,53 @@ +<% content_for :tab_line_buttons do %> + <%= link_to( + choose_projects_path( + title: 'Copy to project...', + 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 %> + <% if @name_link.nil? and @object.uuid.match /[0-9a-f]{32}/ %> + Content hash <%= @object.portable_data_hash %> + <% else %> + <%= if @object.respond_to? :name + render_editable_attribute @object, :name + else + @name_link.andand.name || @object.uuid + end %> + <% end %>

+
+ <%= render_editable_attribute @object, 'description', nil, { 'data-emptytext' => "(No description provided)", 'data-toggle' => 'manual' } %> +
-

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

- + <% if defined? @same_pdh %> +

Found in collections:

+

+ <% @same_pdh.each do |c| %> + <%= link_to_if_arvados_object get_object(c.owner_uuid), {:friendly_name => true} %> / <%= link_to_if_arvados_object c, {:friendly_name => true} %>
+ <% end %> +

+ <% else %> +

Content hash:
+ <%= link_to @object.portable_data_hash, collection_path(@object.portable_data_hash) %>

+ <% end %> <%= render partial: "show_source_summary" %>
@@ -30,10 +67,10 @@ <% 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) %> + Created: <%= name_or_object.created_at.to_s(:long) if name_or_object.created_at %>

- 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 %> + Last modified: <%= name_or_object.modified_at.to_s(:long) if name_or_object.modified_at %> 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', @@ -90,4 +127,4 @@
-<%= render file: 'application/show.html.erb' %> +<%= render file: 'application/show.html.erb', locals: local_assigns %>