summaryrefslogtreecommitdiff
path: root/app/helpers/clusters_helper.rb
blob: 73049c74d8005bf673d6c3d7a06d91dc9df7e3f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module ClustersHelper
  def has_multiple_clusters?(project)
    false
  end

  def render_gcp_signup_offer
    return if Gitlab::CurrentSettings.current_application_settings.hide_third_party_offers?
    return unless show_gcp_signup_offer?

    content_tag :section, class: 'no-animate expanded' do
      render 'projects/clusters/gcp_signup_offer_banner'
    end
  end

  def rbac_clusters_feature_enabled?
    Feature.enabled?(:rbac_clusters)
  end
end