-#TODO: if can?(current_user, :update_cluster, @cluster)
-if@cluster.enabled?
-# if :enabled
-ifcan?(current_user,:update_cluster,@cluster)
=s_('ClusterIntegration|Disabling cluster integration will not affect your cluster. It will only temporarily turn off GitLab\'s conection to it.')
=s_('ClusterIntegration|Cluster integration is enabled for this project. Disabling this integration will not affect your cluster, it will only temporarily turn off GitLab\'s connection to it.')
-# else
-else
=s_('ClusterIntegration|Missing test/state in mockups.')
=s_('ClusterIntegration|Removing cluster integration will remove the cluster configuration you have added to this project. It will not delete your project.')
=s_('ClusterIntegration|Removing cluster integration will remove the cluster configuration you have added to this project. It will not delete your project.')
=link_to(s_('ClusterIntegration|Remove integration'),namespace_project_cluster_path(@project.namespace,@project,@cluster.id),method: :delete,class: 'btn btn-danger',data: {confirm: "Are you sure you want to remove cluster integration from this project? This will not delete your cluster on Google Container Engine"})