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