diff --git a/app/views/notifications/_global_bar.html.erb b/app/views/notifications/_global_bar.html.erb index a267569f2..c7d35753b 100644 --- a/app/views/notifications/_global_bar.html.erb +++ b/app/views/notifications/_global_bar.html.erb @@ -6,14 +6,18 @@ link_text = false link_href = false + show_coronavirus_link = true coronavirus_title = "Coronavirus (COVID-19)" coronavirus_href = "/coronavirus" coronavirus_subtext = "National lockdown: stay at home" + show_transition_link = true transition_title = "Brexit" transition_href = "/transition" transition_subtext = "Check what you need to do" + coronavirus_link_margin_bottom = show_transition_link ? { margin_bottom: 3 } : {} + # Toggles banner being permanently visible # If true, banner is always_visible & does not disappear automatically after 3 pageviews # Regardless of value, banner is always manually dismissable by users @@ -66,8 +70,11 @@
<% end %> - <% if coronavirus_title && coronavirus_href %> + <% if show_coronavirus_link || show_transition_link %> <% end %>