X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/afb710394b65fc82da8e4edd024a3a5fc1a18d54..09a3f207ceb2ddcdc7d31d0190eeed94962740d1:/apps/workbench/app/helpers/collections_helper.rb?ds=inline diff --git a/apps/workbench/app/helpers/collections_helper.rb b/apps/workbench/app/helpers/collections_helper.rb index f5f54851e7..3f62a5601c 100644 --- a/apps/workbench/app/helpers/collections_helper.rb +++ b/apps/workbench/app/helpers/collections_helper.rb @@ -55,7 +55,7 @@ module CollectionsHelper f0 = '' if f0 == '.' f0 = f0[2..-1] if f0[0..1] == './' f0 += '/' if not f0.empty? - file_path = "#{f0}#{file[1]}" + "#{f0}#{file[1]}" end ## @@ -72,7 +72,7 @@ module CollectionsHelper elsif (file_type.raw_media_type == "text") || (file_type.raw_media_type == "image") true elsif (file_type.raw_media_type == "application") && - (Rails.configuration.application_mimetypes_with_view_icon.include? (file_type.sub_type)) + Rails.configuration.Workbench.Workbench.ApplicationMimetypesWithViewIcon[file_type.sub_type] true else false