X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e34135f6779f58852558e03b1b95534c11ca07ae..8deda2012ea7e25610f2cbd0a271e131d9364503:/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 9b39b61d44..76d8731a93 100644 --- a/apps/workbench/app/views/collections/_show_files.html.erb +++ b/apps/workbench/app/views/collections/_show_files.html.erb @@ -1,4 +1,36 @@ -
+ + +<% + preview_selectable_container = '' + preview_selectable = '' + padding_left = '1em' + if !params['use_preview_selection'].nil? and params['use_preview_selection'] == 'true' + preview_selectable_container = 'preview-selectable-container selectable-container' + preview_selectable = 'preview-selectable selectable' + padding_left = '0em' + end +%> + +
<% if !defined? no_checkboxes or !no_checkboxes %>
@@ -16,35 +48,23 @@ %>
+
+ + +
- <%= form_tag collection_path(@object.uuid), {method: 'get'} do %> - - - <% end %> +

<% end %> -<% - file_regex = nil - if params[:file_regex] - begin - file_regex = Regexp.new(params[:file_regex]) - rescue RegexpError - # If the pattern is not a valid regex, quote it - # (i.e. use it as a simple substring search) - file_regex = Regexp.new(Regexp.quote(params[:file_regex])) - end - end -%> - <% file_tree = @object.andand.files_tree %> <% if file_tree.nil? or file_tree.empty? %>

This collection is empty.

<% else %> -