Skip to content

Commit

Permalink
Remove timed update helper
Browse files Browse the repository at this point in the history
- originally copied across and modified to preserve original code, but we don't need this
  • Loading branch information
andysellick committed Jan 15, 2025
1 parent ab6b041 commit 2583ebb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 49 deletions.
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
<%
if GovukPublishingComponents::AppHelpers::TimedUpdateHelper.before_update_time?(year: 2024, month: 7, day: 4, hour: 22, minute: 0)
show_global_bar ||= true # Toggles the appearance of the global bar
title = "Bring photo ID to vote"
title_href = "/how-to-vote/photo-id-youll-need"
link_text = "Check what photo ID you'll need to vote in person in the General Election on 4 July."
else
show_global_bar = false
title = nil
title_href = nil
link_text = nil
end

show_global_bar = false
title ||= nil
title_href ||= nil
link_text ||= nil
link_href = false

# 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
always_visible = true
always_visible ||= false

global_bar_classes = %w(gem-c-global-bar govuk-!-display-none-print)

Expand Down
1 change: 0 additions & 1 deletion lib/govuk_publishing_components.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
require "govuk_publishing_components/app_helpers/brand_helper"
require "govuk_publishing_components/app_helpers/environment"
require "govuk_publishing_components/app_helpers/asset_helper"
require "govuk_publishing_components/app_helpers/timed_update_helper"

# Add i18n paths and views for usage outside of a Rails app
I18n.load_path.unshift(
Expand Down
11 changes: 0 additions & 11 deletions lib/govuk_publishing_components/app_helpers/timed_update_helper.rb

This file was deleted.

This file was deleted.

0 comments on commit 2583ebb

Please sign in to comment.