2018-08-18 11:19:57 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-12-18 13:13:57 +00:00
|
|
|
module ClustersHelper
|
|
|
|
def has_multiple_clusters?(project)
|
2017-12-18 13:35:08 +00:00
|
|
|
false
|
2017-12-18 13:13:57 +00:00
|
|
|
end
|
2018-05-07 18:06:02 +00:00
|
|
|
|
|
|
|
def render_gcp_signup_offer
|
2018-07-10 13:20:05 +00:00
|
|
|
return if Gitlab::CurrentSettings.current_application_settings.hide_third_party_offers?
|
2018-05-07 18:06:02 +00:00
|
|
|
return unless show_gcp_signup_offer?
|
|
|
|
|
|
|
|
content_tag :section, class: 'no-animate expanded' do
|
|
|
|
render 'projects/clusters/gcp_signup_offer_banner'
|
|
|
|
end
|
|
|
|
end
|
2017-12-18 13:13:57 +00:00
|
|
|
end
|