X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/62738e6c4087ad3001ea23bdb3e6b9c577701a55..ebbe2d754223e788ef7c532fb5d1613a51f754a6:/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 10979517d9..75a70868ca 100644 --- a/apps/workbench/app/views/collections/show.html.erb +++ b/apps/workbench/app/views/collections/show.html.erb @@ -2,58 +2,49 @@
-

- <%= @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 not (@output_of.andand.any? or @log_of.andand.any?) %> -

No source information available.

- <% end %> - - <% if @output_of.andand.any? %> -

This collection was the output of:
- <%= render_arvados_object_list_start(@output_of, 'Show all jobs', - jobs_path(filters: [['output', '=', @object.uuid]].to_json)) do |job| %> - <%= link_to_if_arvados_object(job, friendly_name: true) %>
- <% end %> -

- <% end %> - - <% if @log_of.andand.any? %> -

This collection contains log messages from:
- <%= render_arvados_object_list_start(@log_of, 'Show all jobs', - jobs_path(filters: [['log', '=', @object.uuid]].to_json)) do |job| %> - <%= link_to_if_arvados_object(job, friendly_name: true) %>
- <% end %> -

- <% end %> +

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

+ <%= render partial: "show_source_summary" %>
-

- Activity -

+

+ 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) %> + 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', @@ -69,23 +60,24 @@
+ <% if current_user %>
-

- Sharing and permissions -

+

+ Sharing and permissions +

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

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

+ <% else %> +
+
+
+

+ Welcome to Arvados +

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