diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2016-10-17 11:48:56 +0100 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2016-10-17 11:48:56 +0100 |
commit | a8cc76e2a82ed225b246a31d45d41d5ca52a529e (patch) | |
tree | 56963be3fcb17e592cd58d2e2d0b86a2b2755314 | |
parent | 92d12fab66e66358e8fb9204870053e4bab66b71 (diff) | |
download | gitlab-ce-a8cc76e2a82ed225b246a31d45d41d5ca52a529e.tar.gz |
Renames button to show 'Stop' instead of 'Close'
-rw-r--r-- | app/views/projects/environments/show.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/environments/show.html.haml b/app/views/projects/environments/show.html.haml index c4209d499ad..6507768ddc5 100644 --- a/app/views/projects/environments/show.html.haml +++ b/app/views/projects/environments/show.html.haml @@ -13,7 +13,7 @@ - if can?(current_user, :update_environment, @environment) = link_to 'Edit', edit_namespace_project_environment_path(@project.namespace, @project, @environment), class: 'btn' - if @environment.opened? && last_deployment.try(:close_action) - = link_to 'Close', [:play, @project.namespace.becomes(Namespace), @project, last_deployment.close_action], data: { confirm: 'Are you sure you want to close this environment?' }, class: 'btn btn-danger', method: :post + = link_to 'Stop', [:play, @project.namespace.becomes(Namespace), @project, last_deployment.close_action], data: { confirm: 'Are you sure you want to close this environment?' }, class: 'btn btn-danger', method: :post .deployments-container - if @deployments.blank? |