Skip to content

Commit

Permalink
Merge pull request #3557 from alphagov/AI_banner_11/11/2024
Browse files Browse the repository at this point in the history
Add UR banner to business-finance-support finder
  • Loading branch information
hannako authored Nov 11, 2024
2 parents 90319e3 + ac8b7af commit 094edb0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/content_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@ 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
Expand Down
10 changes: 10 additions & 0 deletions app/views/finders/_show_header.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
<div class="govuk-width-container">
<div class="govuk-!-margin-top-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 %>
</div>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<% if content_item.all_content_finder? %>
Expand Down

0 comments on commit 094edb0

Please sign in to comment.