From 36c9095c094e3467cd90072676f3a1aaaddb8d84 Mon Sep 17 00:00:00 2001 From: Dilwoar Hussain Date: Wed, 13 May 2020 20:09:36 +0100 Subject: [PATCH] Toogles additional banner https://trello.com/c/u4L3Xoet/278-waiting-on-confirmation-switch-off-the-emergency-banner-message-area --- app/views/notifications/_global_bar.html.erb | 39 +++++++++++--------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/app/views/notifications/_global_bar.html.erb b/app/views/notifications/_global_bar.html.erb index 9940d88db..b96a1bd6e 100644 --- a/app/views/notifications/_global_bar.html.erb +++ b/app/views/notifications/_global_bar.html.erb @@ -10,6 +10,9 @@ # If true, banner is always_visible & does not disappear automatically after 3 pageviews # Regardless of value, banner is always manually dismissable by users always_visible = true + + # Toggle additional banner + show_additional_banner = true global_bar_classes = %w(global-bar dont-print) @@ -60,25 +63,27 @@

<% end %> -
-
- <%= render "govuk_publishing_components/components/govspeak", { - } do %> -
-

Coronavirus guidance is being updated.

-

Read what you can and cannot do

-
- <% end %> - <%= render 'notifications/covid_logos' %> -
+ <% if show_additional_banner %> +
+
+ <%= render "govuk_publishing_components/components/govspeak", { + } do %> +
+

Coronavirus guidance is being updated.

+

Read what you can and cannot do

+
+ <% end %> + <%= render 'notifications/covid_logos' %> +
- -
+ <% end %>
<% end %>