diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-02-07 13:30:33 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-02-07 13:30:33 +0100 |
commit | bc66944248bf62816f830b5769449c2c3a9dbd04 (patch) | |
tree | 10c3b22141af43ae2039552f9c2b2a086312d210 /app/views/projects/environments | |
parent | 1664354c65c103bd3ad55ebe32e84635bef22a6d (diff) | |
download | gitlab-ce-bc66944248bf62816f830b5769449c2c3a9dbd04.tar.gz |
Fix stoppable?
Diffstat (limited to 'app/views/projects/environments')
-rw-r--r-- | app/views/projects/environments/_stop.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/environments/_stop.html.haml b/app/views/projects/environments/_stop.html.haml index 69848123c17..14a2d627203 100644 --- a/app/views/projects/environments/_stop.html.haml +++ b/app/views/projects/environments/_stop.html.haml @@ -1,4 +1,4 @@ -- if can?(current_user, :create_deployment, environment) && environment.stoppable? +- if can?(current_user, :create_deployment, environment) && environment.stop_action? .inline = link_to stop_namespace_project_environment_path(@project.namespace, @project, environment), method: :post, class: 'btn stop-env-link', rel: 'nofollow', data: { confirm: 'Are you sure you want to stop this environment?' } do |