X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9997ada67ce36d2fbe831bce473aa61250727aff..5338c3fe0abbc6599aa290085be13eecfb0044e9:/apps/workbench/app/helpers/collections_helper.rb diff --git a/apps/workbench/app/helpers/collections_helper.rb b/apps/workbench/app/helpers/collections_helper.rb index f5f54851e7..0c89ca8783 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.ApplicationMimetypesWithViewIcon[file_type.sub_type] true else false