X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c912d9d8d9e2a055a53967c5b01242c321dfbeb6..b7f67c80916c2efa0c234ab5f4e92c24d47223c5:/apps/workbench/app/views/collections/_show_files.html.erb diff --git a/apps/workbench/app/views/collections/_show_files.html.erb b/apps/workbench/app/views/collections/_show_files.html.erb index 956958eddb..051fbf4f62 100644 --- a/apps/workbench/app/views/collections/_show_files.html.erb +++ b/apps/workbench/app/views/collections/_show_files.html.erb @@ -1,53 +1,91 @@ -
- | path | -file | -size | -d/l | -
---|---|---|---|---|
- <%= check_box_tag 'uuids[]', @object.uuid+'/'+file_path, false, {
- :class => 'persistent-selection',
+
+ <% if !defined? no_checkboxes or !no_checkboxes %>
+
+
+
+ <% end %>
+
+<% file_tree = @object.andand.files_tree %>
+<% if file_tree.nil? or file_tree.empty? %>
+
+
+
+
+
+
+ This collection is empty. +<% else %> +
+
+ <%= filename %>
+
+
+
+
+ <% if !defined? no_checkboxes or !no_checkboxes %>
+ <%= check_box_tag 'uuids[]', "#{@object.uuid}/#{file_path}", false, {
+ :class => 'persistent-selection',
:friendly_type => "File",
:friendly_name => "#{@object.uuid}/#{file_path}",
- :href => "#{url_for controller: 'collections', action: 'show', id: @object.uuid }/#{file_path}"
+ :href => url_for(controller: 'collections', action: 'show_file',
+ uuid: @object.portable_data_hash, file: file_path),
+ :title => "Include #{file_path} in your selections",
} %>
- |
- - <%= file[0] %> - | - -- <%= link_to file[1], {controller: 'collections', action: 'show_file', uuid: @object.uuid, file: file_path, size: file[2], disposition: 'inline'}, {title: 'View in browser'} %> - | + + <% end %> + <% if CollectionsHelper::is_image(filename) %> + <%= filename %> + +- <%= raw(human_readable_bytes_html(file[2])) %> - | +<% content_for :footer_html do %> + +<% end %> -
-
- <%= link_to raw(''), {controller: 'collections', action: 'show_file', uuid: @object.uuid, file: file_path, size: file[2], disposition: 'attachment'}, {class: 'btn btn-info btn-sm', title: 'Download'} %>
-
- |
-