diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 1f5d3ae55..30169b711 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -236,4 +236,17 @@ module ApplicationHelper # login_disclaimer: { title: "...", body: "...", action: "..." } ApplicationSettings.instance.values['login_disclaimer'] end + + def show_grey_background? + return false unless controller_name && action_name + + %w( + my_modules/protocols + my_modules/signatures + my_modules/activities + results/index + protocols/show + organization/index + ).include?("#{controller_name}/#{action_name}") + end end diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 838f27bb6..f6727870f 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -69,15 +69,7 @@