Skip to content

Commit

Permalink
Revert "Add User Research Banner To Cold Weather Payment Pages"
Browse files Browse the repository at this point in the history
  • Loading branch information
hannako authored Dec 21, 2023
1 parent e26438e commit 405b203
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 64 deletions.
18 changes: 0 additions & 18 deletions app/presenters/content_item_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,6 @@ class ContentItemPresenter

attr_accessor :include_collections_in_other_publisher_metadata

COLD_SURVEY_URL = "https://forms.office.com/pages/responsepage.aspx?id=lY2s6r7DX0av4Th52NzAlAT5pt_hKLdInpMo5L74aZNUMzgzVUhaSDRSNVg0UVpVOTNLWFFZUlcyRy4u".freeze
COLD_SURVEY_URL_MAPPINGS = {
"/cold-weather-payment" => COLD_SURVEY_URL,
"/cold-weather-payment/eligibility" => COLD_SURVEY_URL,
"/cold-weather-payment/what-you-need-to-do" => COLD_SURVEY_URL,
"/cold-weather-payment/when-youll-get-paid" => COLD_SURVEY_URL,
"/cold-weather-payment/further-information" => COLD_SURVEY_URL,
}.freeze

def recruitment_survey_url
user_research_test_url
end

def user_research_test_url
key = content_item["base_path"]
COLD_SURVEY_URL_MAPPINGS[key]
end

def initialize(content_item, requested_path, view_context)
@content_item = content_item
@requested_path = requested_path
Expand Down
11 changes: 0 additions & 11 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,6 @@
<% end %>
<% end %>

<% if @content_item.recruitment_survey_url %>
<div class="govuk-!-static-margin-top-4">
<%= render "govuk_publishing_components/components/intervention", {
suggestion_text: "Help improve a new GOV.UK tool",
suggestion_link_text: "Sign up to take part in user research",
suggestion_link_url: @content_item.recruitment_survey_url,
new_tab: true,
} %>
</div>
<% end %>

<%= yield :header %>

<main role="main" id="content" class="<%= @content_item.schema_name.dasherize %>" lang="<%= I18n.locale %>">
Expand Down
35 changes: 0 additions & 35 deletions test/integration/recruitment_banner_test.rb

This file was deleted.

0 comments on commit 405b203

Please sign in to comment.