X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ac30c34ccfacce16cca52e155d2a0e50b0185dc3..3270fbf5a3cbd121dad7327513d5a5866c3583c4:/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 f049de9ef0..c3e0b7cb2e 100644 --- a/apps/workbench/app/views/collections/show.html.erb +++ b/apps/workbench/app/views/collections/show.html.erb @@ -1,38 +1,27 @@ - - -

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

- + <%= link_to @object.portable_data_hash, collection_path(@object.portable_data_hash) %> +

<%= render partial: "show_source_summary" %>
@@ -52,10 +41,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', @@ -112,4 +101,4 @@
-<%= render file: 'application/show.html.erb' %> +<%= render file: 'application/show.html.erb', locals: local_assigns %>