Skip to content

Commit

Permalink
Update public layout to use emergency banner
Browse files Browse the repository at this point in the history
  • Loading branch information
injms committed Feb 11, 2021
1 parent dda8022 commit d260b61
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
show_search = local_assigns.include?(:show_search) ? local_assigns[:show_search] : true
layout_helper = GovukPublishingComponents::Presenters::PublicLayoutHelper.new(local_assigns)
global_bar ||= nil
emergency_banner ||= nil
body_classes = %w(
gem-c-layout-for-public
govuk-template__body
Expand Down Expand Up @@ -56,10 +57,11 @@
<%= render "govuk_publishing_components/components/layout_header", {
search: show_search,
# layout-header will always have border-bottom, unless the layout is full width
remove_bottom_border: full_width || global_bar.present?,
remove_bottom_border: full_width || emergency_banner.present? ,
} %>
<% end %>

<%= sanitize(emergency_banner) %>
<%= sanitize(global_bar) %>

<div class="<%= "govuk-width-container" unless full_width %>">
Expand Down

0 comments on commit d260b61

Please sign in to comment.