X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/40df5992d4d8071a6e10a20ecdeb0470a80764cc..51e79a3be745cfd37efc49471ae21a1d54662e7f:/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 c461163651..9cd77b02e1 100644 --- a/apps/workbench/app/views/collections/_show_files.html.erb +++ b/apps/workbench/app/views/collections/_show_files.html.erb @@ -1,6 +1,49 @@ -<% content_for :tab_line_buttons do %> -Collection storage status: -<%= render partial: 'toggle_persist', locals: { uuid: @object.uuid, current_state: (@is_persistent ? 'persistent' : 'cache') } %> +
+ <% if !defined? no_checkboxes or !no_checkboxes %> +
+
+
+ + +
+
+
+ <%= 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 %> @@ -9,7 +52,13 @@ <% else %> @@ -23,27 +72,33 @@
<%= link_to(image_tag("#{url_for @object}/#{file_path}"), @@ -51,7 +106,7 @@ {title: file_path}) %>
<% else %> -
<%= filename %>
+ <%= filename %> <% end %> @@ -63,3 +118,5 @@ <% content_for :footer_html do %> <% end %> + +