Skip to content

Commit

Permalink
Merge pull request #3169 from alphagov/add-research-banner
Browse files Browse the repository at this point in the history
Add user research banner
  • Loading branch information
catalinailie authored Sep 27, 2023
2 parents 7cd96b1 + d039a18 commit e144702
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/finders_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ def show
format.html do
raise UnsupportedContentItem unless content_item.is_finder?

@show_banner = content_item.base_path == "/government/organisations/hm-revenue-customs/contact"

if legacy_params_present?
transform_legacy_announcement_params_and_redirect if content_item.base_path == "/search/news-and-communications"
transform_legacy_publication_params_and_redirect if content_item.base_path == "/search/all"
Expand Down
9 changes: 9 additions & 0 deletions app/views/finders/_show_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@
<%= render 'govuk_publishing_components/components/contextual_breadcrumbs', content_item: content_item.as_hash, inverse: inverse, ga4_tracking: true %>
<% end %>
<% if @show_banner %>
<%= 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: "https://surveys.publishing.service.gov.uk/s/SNFVW1/",
new_tab: true,
} %>
<% end %>
<% if content_item.base_path == "/find-licences"%>
<div class="govuk-!-margin-top-5">
<%= render "govuk_publishing_components/components/intervention", {
Expand Down

0 comments on commit e144702

Please sign in to comment.