Skip to content
Snippets Groups Projects
Commit 0b89500c authored by Filipa Lacerda's avatar Filipa Lacerda
Browse files

Makes stop button visible in environment page

parent a8fcaaf1
No related branches found
No related tags found
1 merge request!7379Makes stop button visible in environment page
Pipeline #
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment