summaryrefslogtreecommitdiff
path: root/app/views/clusters/_advanced_settings.html.haml
diff options
context:
space:
mode:
authorThong Kuah <tkuah@gitlab.com>2018-10-19 14:42:30 +1300
committerThong Kuah <tkuah@gitlab.com>2018-11-01 19:36:58 +1300
commit88800abcd8741b07114c2850e00b74fbecfbf90e (patch)
tree06dcb6a6a8036164eb73df0da2cc13150357dda7 /app/views/clusters/_advanced_settings.html.haml
parent5b3c096c9e0c9e8e7e1cb35c1b9e347995b948f5 (diff)
downloadgitlab-ce-88800abcd8741b07114c2850e00b74fbecfbf90e.tar.gz
Abstract out project out of ClustersController
To the extent possible swap out `project` with `clusterable` - Abstract paths for showing cluster or clusters. This will allow us to swap in alternative paths for group level cluster - Push :project_id and :namespace_id params from the URL to the POST body. - Create a nice helper for to generate links for the destroy action For some reason, spec :project_id and :namespace_id param are not going through `to_param` for a JSON format. Manually call `to_param` to fix specs. - Move :layout to BaseController
Diffstat (limited to 'app/views/clusters/_advanced_settings.html.haml')
-rw-r--r--app/views/clusters/_advanced_settings.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/clusters/_advanced_settings.html.haml b/app/views/clusters/_advanced_settings.html.haml
index 243e8cd9ba0..c91202d9359 100644
--- a/app/views/clusters/_advanced_settings.html.haml
+++ b/app/views/clusters/_advanced_settings.html.haml
@@ -12,4 +12,4 @@
= s_('ClusterIntegration|Remove Kubernetes cluster integration')
%p
= s_("ClusterIntegration|Remove this Kubernetes cluster's configuration from this project. This will not delete your actual Kubernetes cluster.")
- = link_to(s_('ClusterIntegration|Remove integration'), namespace_project_cluster_path(@project.namespace, @project, @cluster.id), method: :delete, class: 'btn btn-danger', data: { confirm: s_("ClusterIntegration|Are you sure you want to remove this Kubernetes cluster's integration? This will not delete your actual Kubernetes cluster.")})
+ = link_to(s_('ClusterIntegration|Remove integration'), cluster_path(@cluster, clusterable_params), method: :delete, class: 'btn btn-danger', data: { confirm: s_("ClusterIntegration|Are you sure you want to remove this Kubernetes cluster's integration? This will not delete your actual Kubernetes cluster.")})