Skip to content

Commit

Permalink
Add wrapper to phase banner on service manual pages
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickpatrickpatrick authored and chao-xian committed Feb 6, 2023
1 parent e1bc001 commit e05b691
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<%= javascript_include_tag "application", integrity: false %>
<%= csrf_meta_tags %>
<%= render 'govuk_publishing_components/components/meta_tags', content_item: @content_item.content_item %>

<% if @content_item.description.present? %>
<meta name="description" content="<%= strip_tags(@content_item.description) %>" />
<% end %>
Expand All @@ -31,11 +31,20 @@
</head>
<body>
<div id="wrapper" class="<%= wrapper_class %>">
<% if @content_item.show_phase_banner? %>
<%= render 'govuk_publishing_components/components/phase_banner', phase: @content_item.phase %>
<% end %>
<% if @content_item.show_service_manual_phase_banner? %>
<%= render_phase_label @content_item, content_for(:phase_message) %>

<% if @content_item.show_phase_banner? || @content_item.show_service_manual_phase_banner? %>
<div class="govuk-width-container">
<div class="govuk-grid-row">
<div class="govuk-grid-column-full">
<% if @content_item.show_phase_banner? %>
<%= render 'govuk_publishing_components/components/phase_banner', phase: @content_item.phase %>
<% end %>
<% if @content_item.show_service_manual_phase_banner? %>
<%= render_phase_label @content_item, content_for(:phase_message) %>
<% end %>
</div>
</div>
</div>
<% end %>

<% unless @do_not_show_breadcrumbs %>
Expand Down

0 comments on commit e05b691

Please sign in to comment.