summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2016-11-09 15:57:30 +0000
committerFilipa Lacerda <filipa@gitlab.com>2016-11-09 15:57:30 +0000
commit0b89500cfe986c956f2b487d54a6b593031d794c (patch)
treedf0227f25376f13409031e2c27393018affd1dca /app/views
parenta8fcaaf1bf27a2bcf20a0cde2546f0de7b73dced (diff)
downloadgitlab-ce-0b89500cfe986c956f2b487d54a6b593031d794c.tar.gz
Makes stop button visible in environment page
Diffstat (limited to 'app/views')
-rw-r--r--app/views/projects/environments/show.html.haml2
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 bcac73d3698..da8200a5531 100644
--- a/app/views/projects/environments/show.html.haml
+++ b/app/views/projects/environments/show.html.haml
@@ -11,7 +11,7 @@
= render 'projects/environments/external_url', environment: @environment
- if can?(current_user, :update_environment, @environment)
= link_to 'Edit', edit_namespace_project_environment_path(@project.namespace, @project, @environment), class: 'btn'
- - if can?(current_user, :create_deployment, @environment) && @environment.stoppable?
+ - if can?(current_user, :create_deployment, @environment)
= link_to 'Stop', stop_namespace_project_environment_path(@project.namespace, @project, @environment), data: { confirm: 'Are you sure you want to stop this environment?' }, class: 'btn btn-danger', method: :post
.deployments-container