2020-08-26 06:10:34 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module WhatsNewHelper
|
2020-09-28 18:09:40 +00:00
|
|
|
def whats_new_most_recent_release_items_count
|
2020-11-24 18:09:14 +00:00
|
|
|
ReleaseHighlight.most_recent_item_count
|
2020-09-28 18:09:40 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def whats_new_storage_key
|
2020-12-04 09:09:36 +00:00
|
|
|
most_recent_version = ReleaseHighlight.versions&.first
|
2020-08-26 06:10:34 +00:00
|
|
|
|
2020-11-24 18:09:14 +00:00
|
|
|
return unless most_recent_version
|
2020-08-26 06:10:34 +00:00
|
|
|
|
2020-11-24 18:09:14 +00:00
|
|
|
['display-whats-new-notification', most_recent_version].join('-')
|
2020-08-26 06:10:34 +00:00
|
|
|
end
|
2020-12-04 09:09:36 +00:00
|
|
|
|
|
|
|
def whats_new_versions
|
|
|
|
ReleaseHighlight.versions
|
|
|
|
end
|
2020-08-26 06:10:34 +00:00
|
|
|
end
|