From 9c055a1bdfb4980713d5db6cdb42da96f55327f6 Mon Sep 17 00:00:00 2001 From: Jessica Jones Date: Wed, 11 Dec 2024 15:03:01 +0000 Subject: [PATCH] Remove hardcoded banner code This banner is now being configured in v0.2.0 of the govuk_web_banners gem. https://github.com/alphagov/finder-frontend/pull/3557 --- app/models/content_item.rb | 4 ---- app/views/finders/_show_header.html.erb | 10 ---------- app/views/layouts/finder_layout.html.erb | 2 +- 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/app/models/content_item.rb b/app/models/content_item.rb index 950cc6524..149f4f6b5 100644 --- a/app/models/content_item.rb +++ b/app/models/content_item.rb @@ -164,10 +164,6 @@ def is_licence_transaction? base_path == "/find-licences" end - def has_user_research_banner? - base_path == "/business-finance-support" - end - private attr_reader :content_item_hash diff --git a/app/views/finders/_show_header.html.erb b/app/views/finders/_show_header.html.erb index e7b40bb47..5e1d79bab 100644 --- a/app/views/finders/_show_header.html.erb +++ b/app/views/finders/_show_header.html.erb @@ -1,14 +1,4 @@
- <% if content_item.has_user_research_banner? %> -
- <%= render "govuk_publishing_components/components/intervention", { - suggestion_text: "Help improve GOV.UK", - suggestion_link_text: "Sign up to take part in user research (opens in a new tab)", - suggestion_link_url: "https://survey.take-part-in-research.service.gov.uk/jfe/form/SV_2bggmg6xlelrO0S", - new_tab: true, - } %> -
- <% end %>
<% if content_item.all_content_finder? %> diff --git a/app/views/layouts/finder_layout.html.erb b/app/views/layouts/finder_layout.html.erb index faf1ebb3f..44da7ae25 100644 --- a/app/views/layouts/finder_layout.html.erb +++ b/app/views/layouts/finder_layout.html.erb @@ -1,7 +1,7 @@ <% content_for :body do %> <%= yield :before_content %> - + <%= render "govuk_web_banners/recruitment_banner" %>
<%= yield %>