Class: ProjectClusterablePresenter
- Inherits:
-
ClusterablePresenter
- Object
- SimpleDelegator
- Gitlab::View::Presenter::Delegated
- ClusterablePresenter
- ProjectClusterablePresenter
- Extended by:
- Gitlab::Utils::Override
- Defined in:
- app/presenters/project_clusterable_presenter.rb
Instance Method Summary collapse
- #clear_cluster_cache_path(cluster) ⇒ Object
- #cluster_path(cluster, params = {}) ⇒ Object
- #cluster_status_cluster_path(cluster, params = {}) ⇒ Object
- #learn_more_link ⇒ Object
- #sidebar_text ⇒ Object
Methods included from Gitlab::Utils::Override
extended, extensions, included, method_added, override, prepended, queue_verification, verify!
Methods inherited from ClusterablePresenter
#can_add_cluster?, #can_admin_cluster?, #can_create_cluster?, #connect_path, #create_user_clusters_path, #empty_state_help_text, #environments_cluster_path, fabricate, #index_path, #new_cluster_docs_path
Methods inherited from Gitlab::View::Presenter::Delegated
Methods included from Gitlab::Utils::DelegatorOverride
#delegator_override, #delegator_override_with, #delegator_target, validator, validators, verify!
Methods included from Gitlab::View::Presenter::Base
#__subject__, #can?, #declarative_policy_delegate, #is_a?, #path_with_line_numbers, #present, #url_builder, #web_path, #web_url
Methods included from Gitlab::Allowable
Methods included from Gitlab::Routing
includes_helpers, redirect_legacy_paths, url_helpers
Constructor Details
This class inherits a constructor from Gitlab::View::Presenter::Delegated
Instance Method Details
#clear_cluster_cache_path(cluster) ⇒ Object
14 15 16 |
# File 'app/presenters/project_clusterable_presenter.rb', line 14 def clear_cluster_cache_path(cluster) clear_cache_project_cluster_path(clusterable, cluster) end |
#cluster_path(cluster, params = {}) ⇒ Object
19 20 21 |
# File 'app/presenters/project_clusterable_presenter.rb', line 19 def cluster_path(cluster, params = {}) project_cluster_path(clusterable, cluster, params) end |
#cluster_status_cluster_path(cluster, params = {}) ⇒ Object
9 10 11 |
# File 'app/presenters/project_clusterable_presenter.rb', line 9 def cluster_status_cluster_path(cluster, params = {}) cluster_status_project_cluster_path(clusterable, cluster, params) end |
#learn_more_link ⇒ Object
29 30 31 |
# File 'app/presenters/project_clusterable_presenter.rb', line 29 def learn_more_link ApplicationController.helpers.link_to(s_('ClusterIntegration|Learn more about Kubernetes.'), help_page_path('user/project/clusters/index.md'), target: '_blank', rel: 'noopener noreferrer') end |
#sidebar_text ⇒ Object
24 25 26 |
# File 'app/presenters/project_clusterable_presenter.rb', line 24 def s_('ClusterIntegration|Use GitLab to deploy to your cluster, run jobs, use review apps, and more.') end |