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 ...@@ -44,7 +44,7 @@ class ClusterablePresenter < Gitlab::View::Presenter::Delegated
raise NotImplementedError raise NotImplementedError
end end
def is_project? def project?
raise NotImplementedError raise NotImplementedError
end end
end end
...@@ -13,7 +13,7 @@ class GroupClusterablePresenter < ClusterablePresenter ...@@ -13,7 +13,7 @@ class GroupClusterablePresenter < ClusterablePresenter
group_cluster_path(clusterable, cluster, params) group_cluster_path(clusterable, cluster, params)
end end
def is_project? def project?
false false
end end
end end
...@@ -13,7 +13,7 @@ class ProjectClusterablePresenter < ClusterablePresenter ...@@ -13,7 +13,7 @@ class ProjectClusterablePresenter < ClusterablePresenter
project_cluster_path(clusterable, cluster, params) project_cluster_path(clusterable, cluster, params)
end end
def is_project? def project?
true true
end end
end end
...@@ -7,7 +7,7 @@ ...@@ -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') - link_to_help_page = link_to(_('Learn more about Kubernetes'), help_page_path('user/project/clusters/index'), target: '_blank', rel: 'noopener noreferrer')
%p %p
= s_('ClusterIntegration|Kubernetes clusters allow you to use review apps, deploy your applications, run your pipelines, and much more in an easy way.') = 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') = link_to(s_('ClusterIntegration|Learn more about Kubernetes'), help_page_path('user/project/clusters/index'), target: '_blank', rel: 'noopener noreferrer')
- else - else
= s_('ClusterIntegration|Adding an integration to your group will share the cluster across all your projects.') = s_('ClusterIntegration|Adding an integration to your group will share the cluster across all your projects.')
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
- help_link_end = '</a>'.html_safe - help_link_end = '</a>'.html_safe
%h4.prepend-top-0 %h4.prepend-top-0
= s_('ClusterIntegration|Add a Kubernetes cluster integration') = s_('ClusterIntegration|Add a Kubernetes cluster integration')
- if clusterable.is_project? - if clusterable.project?
%p %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.') = 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 %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