Skip to content

Commit

Permalink
Merge pull request #1947 from alphagov/remove-vote-banner
Browse files Browse the repository at this point in the history
Remove vote banner
  • Loading branch information
Vanita Barrett authored Nov 27, 2019
2 parents 4d6735f + 2e1c56f commit 105339b
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,12 +1,12 @@
<%
require 'date'

show_global_bar ||= true # Toggles the appearance of the global bar
show_global_bar ||= false # Toggles the appearance of the global bar
title = "Register to vote"
title_href = "/register-to-vote"
link_text = "Register by 26 November to vote in the General Election on 12 December."
link_href = false
close_date = DateTime.new(2019,11,26,23,59,00) # DateTime after which the bar will automatically disappear, or false to unset
close_date = false # DateTime after which the bar will automatically disappear, or false to unset
-%>

<% if show_global_bar && (!close_date || DateTime.now() < close_date) %>
Expand Down

0 comments on commit 105339b

Please sign in to comment.