X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f549c9f05860abfb394b550c0b2c30a5a7c33283..1bb7352bf1425dc9acf028f863eaff1e5c207571:/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 805591349a..5b6dac81ed 100644 --- a/apps/workbench/app/views/collections/_show_files.html.erb +++ b/apps/workbench/app/views/collections/_show_files.html.erb @@ -1,3 +1,24 @@ + +
<% if !defined? no_checkboxes or !no_checkboxes %>
@@ -16,45 +37,25 @@ %>
+
+ + +
- <%= 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) %> -

-

The search term <%= params[:file_regex] %> could not be parsed as a regular expression.

-

Searching for files named <%= params[:file_regex] %> instead.

-
- <% 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 %> @@ -69,7 +70,7 @@ <% else %> <% link_params = {controller: 'collections', action: 'show_file', uuid: @object.portable_data_hash, file: file_path, size: size} %> -
+
<%= raw(human_readable_bytes_html(size)) %> <% disable_search = (Rails.configuration.filename_suffixes_with_view_icon.include? file_path.split('.')[-1]) ? false : true %>