diff --git a/app/presenters/content_item/metadata.rb b/app/presenters/content_item/metadata.rb index dfb1c2a079..6ca771ddfa 100644 --- a/app/presenters/content_item/metadata.rb +++ b/app/presenters/content_item/metadata.rb @@ -20,12 +20,18 @@ def important_metadata end def publisher_metadata - { + display_date = content_item["details"]["display_date"] + metadata = { from:, first_published: published, last_updated: updated, - see_updates_link: true, } + + unless display_date.present? && Time.zone.parse(display_date).future? + metadata[:see_updates_link] = true + end + + metadata end end end diff --git a/config/locales/en.yml b/config/locales/en.yml index 5e2e611eb4..7de3aa9f89 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -484,7 +484,7 @@ en: pages_in_manual_section: Manual section pages previous_page: Previous page search_this_manual: Search this manual - see_all_updates: see all updates + see_all_updates: See all updates title: "%{title}Guidance" updated: Updated updates_amendments: published amendments