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

16 lines
323 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-04-29 21:17:54 +05:30
def whats_new_version_digest
ReleaseHighlight.most_recent_version_digest
2021-02-22 17:27:13 +05:30
end
2020-11-24 15:15:51 +05:30
2021-04-29 21:17:54 +05:30
def display_whats_new?
Gitlab.dev_env_org_or_com? || user_signed_in?
2020-11-24 15:15:51 +05:30
end
end