Skip to content

Commit

Permalink
Add exception to global banner
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanHallam committed Aug 29, 2019
1 parent 8b64ec5 commit 3029f01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/notifications/_global_bar.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<%
show_global_bar ||= false # Toggles the appearance of the global bar
show_global_bar ||= true # Toggles the appearance of the global bar
title = "The title"
information = "Some information about something"
link_href = "https://www.gov.uk/"
Expand All @@ -8,7 +8,7 @@
<% if show_global_bar %>
<% content_for :head do %>
<!--[if gt IE 7]><!-->
<script>!function(t){"use strict";function e(){return!/^\/register-to-vote|^\/done/.test(window.location.pathname)}function n(){var e=t.cookie.match("(?:^|[ ;])global_bar_seen=([0-9]+)");return e?parseInt(e.pop(),10)<3:!0}var o=t.documentElement;e()&&n()&&(o.className=o.className.concat(" show-global-bar"))}(document);</script>
<script>!function(t){"use strict";function e(){return!/^\/register-to-vote|^\/done|^\/brexit/.test(window.location.pathname)}function n(){var e=t.cookie.match("(?:^|[ ;])global_bar_seen=([0-9]+)");return e?parseInt(e.pop(),10)<3:!0}var o=t.documentElement;e()&&n()&&(o.className=o.className.concat(" show-global-bar"))}(document);</script>
<!--<![endif]-->
<% end %>
<!--[if gt IE 7]><!-->
Expand Down

0 comments on commit 3029f01

Please sign in to comment.