summaryrefslogtreecommitdiff
path: root/app/helpers/whats_new_helper.rb
blob: 9362ae1491ffe2920f2266e072ce164c86834fe3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

module WhatsNewHelper
  def whats_new_most_recent_release_items_count
    ReleaseHighlight.most_recent_item_count
  end

  def whats_new_version_digest
    ReleaseHighlight.most_recent_version_digest
  end

  def display_whats_new?
    Gitlab.dev_env_org_or_com? || user_signed_in?
  end
end