2017-12-18 08:13:57 -05:00
|
|
|
module ClustersHelper
|
|
|
|
def has_multiple_clusters?(project)
|
2017-12-18 08:35:08 -05:00
|
|
|
false
|
2017-12-18 08:13:57 -05:00
|
|
|
end
|
2018-05-07 14:06:02 -04:00
|
|
|
|
|
|
|
def render_gcp_signup_offer
|
2018-07-10 09:20:05 -04:00
|
|
|
return if Gitlab::CurrentSettings.current_application_settings.hide_third_party_offers?
|
2018-05-07 14:06:02 -04:00
|
|
|
return unless show_gcp_signup_offer?
|
|
|
|
|
|
|
|
content_tag :section, class: 'no-animate expanded' do
|
|
|
|
render 'projects/clusters/gcp_signup_offer_banner'
|
|
|
|
end
|
|
|
|
end
|
2018-09-06 06:03:38 -04:00
|
|
|
|
|
|
|
def rbac_clusters_feature_enabled?
|
|
|
|
Feature.enabled?(:rbac_clusters)
|
|
|
|
end
|
2017-12-18 08:13:57 -05:00
|
|
|
end
|