Commit 83b8321a authored by Mike Greiling's avatar Mike Greiling Committed by Thong Kuah

Rename is_project? to project?

parent 82391594
......@@ -44,7 +44,7 @@ class ClusterablePresenter < Gitlab::View::Presenter::Delegated
raise NotImplementedError
end
def is_project?
def project?
raise NotImplementedError
end
end
......@@ -13,7 +13,7 @@ class GroupClusterablePresenter < ClusterablePresenter
group_cluster_path(clusterable, cluster, params)
end
def is_project?
def project?
false
end
end
......@@ -13,7 +13,7 @@ class ProjectClusterablePresenter < ClusterablePresenter
project_cluster_path(clusterable, cluster, params)
end
def is_project?
def project?
true
end
end
......@@ -7,7 +7,7 @@
- link_to_help_page = link_to(_('Learn more about Kubernetes'), help_page_path('user/project/clusters/index'), target: '_blank', rel: 'noopener noreferrer')
%p
= s_('ClusterIntegration|Kubernetes clusters allow you to use review apps, deploy your applications, run your pipelines, and much more in an easy way.')
- if clusterable.is_project?
- if clusterable.project?
= link_to(s_('ClusterIntegration|Learn more about Kubernetes'), help_page_path('user/project/clusters/index'), target: '_blank', rel: 'noopener noreferrer')
- else
= s_('ClusterIntegration|Adding an integration to your group will share the cluster across all your projects.')
......
......@@ -3,7 +3,7 @@
- help_link_end = '</a>'.html_safe
%h4.prepend-top-0
= s_('ClusterIntegration|Add a Kubernetes cluster integration')
- if clusterable.is_project?
- if clusterable.project?
%p
= s_('ClusterIntegration|With a Kubernetes cluster associated to this project, you can use review apps, deploy your applications, run your pipelines, and much more in an easy way.')
%p
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment