X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a959f21c8147f26362df392bc3fd3290db69de85..bbacca53ce2e9eabe3c8e02cee8d3650864bd3f1:/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 f91357b120..f0af963c2a 100644 --- a/apps/workbench/app/views/collections/show.html.erb +++ b/apps/workbench/app/views/collections/show.html.erb @@ -1,106 +1,63 @@
-
+
-

- <% i = 0 %> - <% @folder_links.each do |l| %> - <%= if i > 0 then ', ' end %> - <% i += 1 %> - <%= l.name %> - <% 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 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(filter: [['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(filter: [['log', '=', @object.uuid]].to_json)) do |job| %> - <%= link_to_if_arvados_object(job, friendly_name: true) %>
- <% end %> -

- <% end %> -
-
-
-
-
-
-

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

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" %>
-
+ <% 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', - links_path(filter: [['head_uuid', '=', @object.uuid], - ['link_class', '=', 'name']].to_json)) do |project| %> - <%= link_to_if_arvados_object(project, friendly_name: true) %>
+ 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(filter: [['head_uuid', '=', @object.uuid], + 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 %> @@ -110,6 +67,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 %>