_advanced_settings.html.haml 1.0 KB
Newer Older
1
- if can?(current_user, :admin_cluster, @cluster)
2 3 4
  - if @cluster.managed?
    .append-bottom-20
      %label.append-bottom-10
T
Takuya Noguchi 已提交
5
        = s_('ClusterIntegration|Google Kubernetes Engine')
6
      %p
T
Takuya Noguchi 已提交
7
        - link_gke = link_to(s_('ClusterIntegration|Google Kubernetes Engine'), @cluster.gke_cluster_url, target: '_blank', rel: 'noopener noreferrer')
8
        = s_('ClusterIntegration|Manage your Kubernetes cluster by visiting %{link_gke}').html_safe % { link_gke: link_gke }
9

10 11
  .sub-section.form-group
    %h4.text-danger
12
      = s_('ClusterIntegration|Remove Kubernetes cluster integration')
13
    %p
14
      = s_("ClusterIntegration|Remove this Kubernetes cluster's configuration from this project. This will not delete your actual Kubernetes cluster.")
15
    = 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.")})