diff --git a/app/helpers/recruitment_banner_helper.rb b/app/helpers/recruitment_banner_helper.rb deleted file mode 100644 index a047c9281..000000000 --- a/app/helpers/recruitment_banner_helper.rb +++ /dev/null @@ -1,17 +0,0 @@ -module RecruitmentBannerHelper - SURVERY_URL = "https://surveys.publishing.service.gov.uk/s/SNFVW1/".freeze - - SURVEY_URL_MAPPINGS = { - "/browse/tax" => SURVERY_URL, - "/browse/tax/self-assessment" => SURVERY_URL, - "/topic/personal-tax/self-assessment" => SURVERY_URL, - }.freeze - - def recruitment_survey_url - user_research_test_url - end - - def user_research_test_url - SURVEY_URL_MAPPINGS[base_path] - end -end diff --git a/app/models/mainstream_browse_page.rb b/app/models/mainstream_browse_page.rb index 4312d3289..56a773147 100644 --- a/app/models/mainstream_browse_page.rb +++ b/app/models/mainstream_browse_page.rb @@ -1,6 +1,4 @@ class MainstreamBrowsePage - include RecruitmentBannerHelper - attr_reader :content_item delegate( diff --git a/app/models/topic.rb b/app/models/topic.rb index 8833ef72c..8f9b4cc21 100644 --- a/app/models/topic.rb +++ b/app/models/topic.rb @@ -1,6 +1,4 @@ class Topic - include RecruitmentBannerHelper - attr_reader :content_item delegate( diff --git a/app/views/browse/show.html.erb b/app/views/browse/show.html.erb index e9dd42b80..ffc0a5a73 100644 --- a/app/views/browse/show.html.erb +++ b/app/views/browse/show.html.erb @@ -20,7 +20,7 @@ } %> <% end %> -<%= render "shared/browse_header", { margin_bottom: page.slug == "benefits" || page.recruitment_survey_url ? 7 : 9 } do %> +<%= render "shared/browse_header", { margin_bottom: page.slug == "benefits" ? 7 : 9 } do %>