diff options
author | Matija Čupić <matteeyah@gmail.com> | 2017-12-21 17:58:46 +0100 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2017-12-21 17:58:46 +0100 |
commit | 9812d8c283abcd2b2ab3c7fea061c77f6f4eeb99 (patch) | |
tree | f58ad1ea2feba37aecff0fbac5230c508ca1038e /app/views/projects/clusters/_banner.html.haml | |
parent | 47e0a6cf429fed8d7bd527f8ab9fa53a86caedfe (diff) | |
download | gitlab-ce-9812d8c283abcd2b2ab3c7fea061c77f6f4eeb99.tar.gz |
Add environment_scope to enabled partial
Diffstat (limited to 'app/views/projects/clusters/_banner.html.haml')
-rw-r--r-- | app/views/projects/clusters/_banner.html.haml | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/app/views/projects/clusters/_banner.html.haml b/app/views/projects/clusters/_banner.html.haml index 76a66fb92a2..6b9507c854f 100644 --- a/app/views/projects/clusters/_banner.html.haml +++ b/app/views/projects/clusters/_banner.html.haml @@ -1,6 +1,7 @@ -%h4= s_('ClusterIntegration|Enable cluster integration') -.settings-content +%h4= s_('ClusterIntegration|Cluster integration') +%p= s_('ClusterIntegration|Control how your cluster integrates with GitLab') +.settings-content .hidden.js-cluster-error.alert.alert-danger.alert-block.append-bottom-10{ role: 'alert' } = s_('ClusterIntegration|Something went wrong while creating your cluster on Google Kubernetes Engine') %p.js-error-reason @@ -10,12 +11,3 @@ .hidden.js-cluster-success.alert.alert-success.alert-block.append-bottom-10{ role: 'alert' } = s_('ClusterIntegration|Cluster was successfully created on Google Kubernetes Engine. Refresh the page to see cluster\'s details') - - %p - - if @cluster.enabled? - - if can?(current_user, :update_cluster, @cluster) - = 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 - = s_('ClusterIntegration|Cluster integration is enabled for this project.') - - else - = s_('ClusterIntegration|Cluster integration is disabled for this project.') |