X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/5b7762f1e6931c3e4e6ccd36d2a75ce53e38e36c..27ba0e2e0733ddaeb7437dc4194f684306636635:/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 7d8ac4dacb..8a9200aeba 100644 --- a/apps/workbench/app/views/collections/show.html.erb +++ b/apps/workbench/app/views/collections/show.html.erb @@ -1,106 +1,52 @@ -<% 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 %> +<%# Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: AGPL-3.0 %>
-
+
-

- <% 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 %> -

+

+ <%= if @object.respond_to? :name + render_editable_attribute @object, :name + elsif @name_link + @name_link.name + else + @object.uuid + end %> +

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

Collection UUID:
+ <%= render partial: "show_autoselect_text", locals: {text: @object.uuid, tagclass: "arvados-uuid"} %> +

+

Content address:
+ <%= render partial: "show_autoselect_text", locals: {text: @object.portable_data_hash, tagclass: "arvados-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) if name_or_object.created_at %> -

-

- 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', - 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 %> -
-
-
-
+ <% if current_user %> +
-

- Sharing and permissions -

+

+ Sharing and permissions +

- - + <% if !Rails.configuration.Workbench.DisableSharingURLsUI %>
<%= render partial: 'sharing_button' %>
+ <% end %> -
+
<% if @projects.andand.any? %>

Included in projects:
<%= render_arvados_object_list_start(@projects, 'Show all projects', @@ -123,6 +69,20 @@

+ <% else %> +
+
+
+

+ Welcome to Arvados +

+
+
+ You are accessing public data. +
+
+
+ <% end %>
<%= render file: 'application/show.html.erb', locals: local_assigns %>