<div class="panel panel-info">
<div class="panel-heading">
<h3 class="panel-title">
- <% if @object.uuid.match /[0-9a-f]{32}/ %>
+ <% if @name_link.nil? and @object.uuid.match /[0-9a-f]{32}/ %>
Content hash <%= @object.portable_data_hash %>
<% else %>
<%= if @object.respond_to? :name
</h3>
</div>
<div class="panel-body">
+ <div class="arv-description-as-subtitle">
+ <%= render_editable_attribute @object, 'description', nil, { 'data-emptytext' => "(No description provided)", 'data-toggle' => 'manual' } %>
+ </div>
<img src="/favicon.ico" class="pull-right" alt="" style="opacity: 0.3"/>
- <% if @object.uuid.match /[0-9a-f]{32}/ %>
- <p>Found in collections:<p>
- <p>
- <% cols = Collection.filter([["portable_data_hash", "=", @object.portable_data_hash]]).each do |c| %>
- <%= link_to_if_arvados_object c.owner_uuid, {:friendly_name => true} %> / <%= link_to_if_arvados_object c, {:friendly_name => true} %><br>
- <% end %>
- </p>
- <% else %>
- <p><i>Content hash:</i><br />
- <span class="arvados-uuid"><%= link_to @object.portable_data_hash, collection_path(@object.portable_data_hash) %></span></p>
- <% end %>
+ <p><i>Content hash:</i><br />
+ <span class="arvados-uuid"><%= link_to @object.portable_data_hash, collection_path(@object.portable_data_hash) %></span>
+ </p>
<%= render partial: "show_source_summary" %>
</div>
</div>