Skip to content

Commit

Permalink
Add banner for eligible pages
Browse files Browse the repository at this point in the history
  • Loading branch information
1pretz1 committed Feb 7, 2023
1 parent 2534d76 commit 8e8b107
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/views/content_items/corporate_information_page.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
) %>
<% end %>

<% if @content_item.show_organisation_changing_banner? %>
<div class="govuk-width-container govuk-!-margin-top-8">
<%= render "govuk_publishing_components/components/notice", {
title: sanitize('This organisation is changing. Read <a href="https://www.gov.uk/government/news/making-government-deliver-for-the-british-people">the latest updates on government departments</a> or visit the <a href="https://twitter.com/10DowningStreet">10 Downing Street Twitter feed</a>.'),
margin_bottom: 3,
} %>
</div>
<% end %>

<% @additional_body = capture do %>
<% if @content_item.corporate_information? %>
<%= @content_item.corporate_information_heading_tag %>
Expand Down

0 comments on commit 8e8b107

Please sign in to comment.