debian-mirror-gitlab/app/helpers/whats_new_helper.rb

20 lines
421 B
Ruby
Raw Normal View History

2020-11-24 15:15:51 +05:30
# frozen_string_literal: true
module WhatsNewHelper
2021-01-03 14:25:43 +05:30
def whats_new_most_recent_release_items_count
2021-02-22 17:27:13 +05:30
ReleaseHighlight.most_recent_item_count
2021-01-03 14:25:43 +05:30
end
2020-11-24 15:15:51 +05:30
2021-01-03 14:25:43 +05:30
def whats_new_storage_key
2021-02-22 17:27:13 +05:30
most_recent_version = ReleaseHighlight.versions&.first
2020-11-24 15:15:51 +05:30
2021-02-22 17:27:13 +05:30
return unless most_recent_version
2020-11-24 15:15:51 +05:30
2021-02-22 17:27:13 +05:30
['display-whats-new-notification', most_recent_version].join('-')
end
2020-11-24 15:15:51 +05:30
2021-02-22 17:27:13 +05:30
def whats_new_versions
ReleaseHighlight.versions
2020-11-24 15:15:51 +05:30
end
end