X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/6db406e9a2fc78ed204460deb73151f44d94b030..b1d1c5acf6f237d5e2a02414dd59e92cdb862237:/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 ee809d60d3..e1b08290b0 100644 --- a/apps/workbench/app/views/collections/show.html.erb +++ b/apps/workbench/app/views/collections/show.html.erb @@ -3,17 +3,33 @@

- <%= if @object.respond_to? :name - render_editable_attribute @object, :name - else - @name_link.andand.name || @object.uuid - end%> + <% 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:
- <%= link_to @object.portable_data_hash, collection_path(@object.portable_data_hash) %>

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