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

19 lines
455 B
Ruby
Raw Normal View History

2018-03-17 18:26:18 +05:30
module ClustersHelper
def has_multiple_clusters?(project)
false
end
2018-10-15 14:42:47 +05:30
def render_gcp_signup_offer
2018-11-08 19:23:39 +05:30
return if Gitlab::CurrentSettings.current_application_settings.hide_third_party_offers?
2018-10-15 14:42:47 +05:30
return unless show_gcp_signup_offer?
content_tag :section, class: 'no-animate expanded' do
render 'projects/clusters/gcp_signup_offer_banner'
end
end
2018-11-20 20:47:30 +05:30
def rbac_clusters_feature_enabled?
Feature.enabled?(:rbac_clusters)
end
2018-03-17 18:26:18 +05:30
end