* Display the UUID, and make it auto-select for easy copying.
* Do the same for the portable data hash, and call it the content
address to emphasize that.
* Display information about the collection's size on the show page and
preview pane. This relies on an updated Ruby SDK.
* Clean up code that checks for a portable data hash in the UUID.
That can't happen anymore thanks to the redirect/list display logic
in the controller.
source 'https://rubygems.org'
gem 'rails', '~> 4.1.0'
-gem 'arvados', '>= 0.1.20150210011250'
+gem 'arvados', '>= 0.1.20150310184329'
gem 'sqlite3'
andand (1.3.3)
angularjs-rails (1.3.8)
arel (5.0.1.20140414130214)
- arvados (0.1.20150210011250)
+ arvados (0.1.20150310184329)
activesupport (>= 3.2.13)
andand (~> 1.3, >= 1.3.3)
google-api-client (~> 0.6.3, >= 0.6.3)
RedCloth
andand
angularjs-rails
- arvados (>= 0.1.20150210011250)
+ arvados (>= 0.1.20150310184329)
bootstrap-sass (~> 3.1.0)
bootstrap-tab-history-rails
bootstrap-x-editable-rails
this.addClass('label-danger').fadeTo('fast', '1');
});
return false;
+ }).
+ on('click focusin', 'input.select-on-focus', function(event) {
+ event.target.select();
});
$(document).
.nowrap {
white-space: nowrap;
}
+input.select-on-focus {
+ font-family: monospace;
+ background: inherit;
+ border: thin #ccc solid;
+ border-radius: .2em;
+ padding: .15em .5em;
+}
+input.select-on-focus:focus {
+ border-color: #9bf;
+}
/* top nav */
$top-nav-bg: #3c163d;
--- /dev/null
+<%# Render local variable `text` so the entire text is automatically
+ selected when clicked or focused. %>
+<input class="select-on-focus <%= tagclass %>" type="text" readonly
+ size="<%= text.size %>" value="<%= text %>">
+<p><i>Content size:</i><br />
+ <%= pluralize(@object.manifest.files_count, "file") %> totalling
+ <%= raw(human_readable_bytes_html(@object.manifest.files_size)) %></p>
+
<% if not (@output_of.andand.any? or @log_of.andand.any?) %>
<p><i>No source information available.</i></p>
<% end %>
<div class="panel panel-info">
<div class="panel-heading">
<h3 class="panel-title">
- <% 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 %>
+ <%= if @object.respond_to? :name
+ render_editable_attribute @object, :name
+ elsif @name_link
+ @name_link.name
+ else
+ @object.uuid
+ end %>
</h3>
</div>
<div class="panel-body">
<%= 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"/>
- <p><i>Content hash:</i><br />
- <span class="arvados-uuid"><%= link_to @object.portable_data_hash, collection_path(@object.portable_data_hash) %></span>
+ <p><i>Collection UUID:</i><br />
+ <%= render partial: "show_autoselect_text", locals: {text: @object.uuid, tagclass: "arvados-uuid"} %>
+ </p>
+ <p><i>Content address:</i><br />
+ <%= render partial: "show_autoselect_text", locals: {text: @object.portable_data_hash, tagclass: "arvados-uuid"} %>
</p>
<%= render partial: "show_source_summary" %>
</div>