Skip to content

Commit

Permalink
Merge pull request #3594 from alphagov/revert-3566-set-up-user-resear…
Browse files Browse the repository at this point in the history
…ch-banner

Revert "Set up DWP user research banner"
  • Loading branch information
hannako authored Apr 17, 2024
2 parents 41de80b + 5d5382f commit 040f2c0
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 55 deletions.
1 change: 0 additions & 1 deletion app/controllers/browse_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
class BrowseController < ApplicationController
slimmer_template "gem_layout_full_width"
include RecruitmentBannerHelper

def index
page = MainstreamBrowsePage.find("/browse")
Expand Down
1 change: 0 additions & 1 deletion app/controllers/organisations_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
class OrganisationsController < ApplicationController
skip_before_action :set_expiry
include RecruitmentBannerHelper
before_action do
set_expiry content_item.max_age, public_cache: content_item.public_cache
end
Expand Down
3 changes: 1 addition & 2 deletions app/views/browse/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<% add_view_stylesheet("browse") %>

<% content_for :title, page.title %>

<%= render 'shared/tag_meta', tag: page %>
Expand Down Expand Up @@ -30,8 +31,6 @@
} %>
<% end %>

<%= render partial: 'shared/intervention_banner' %>

<% if display_action_links_for_slug?(page.slug) %>
<div class="govuk-width-container">
<div class="govuk-grid-row">
Expand Down
1 change: 0 additions & 1 deletion app/views/organisations/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

<%= render partial: 'meta', locals: { organisation: @organisation } %>
<%= render partial: 'breadcrumb' %>
<%= render partial: 'shared/intervention_banner' %>
<%= render partial: 'header' %>
<%= render 'govuk_publishing_components/components/machine_readable_metadata',
schema: :organisation,
Expand Down
7 changes: 0 additions & 7 deletions lib/data/recruitment_banners.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,3 @@
# - /foreign-travel-advice

banners:
- name: DWP user research banner
suggestion_text: Help improve GOV.UK
suggestion_link_text: Take part in user research (opens in a new tab)
survey_url: https://forms.office.com/e/CkfCRwdLQj
page_paths:
- /government/organisations/department-for-work-pensions
- /browse/benefits
43 changes: 0 additions & 43 deletions spec/features/recruitment_banner_spec.rb

This file was deleted.

0 comments on commit 040f2c0

Please sign in to comment.