2016-10-17 15:06:10 -04:00
|
|
|
- if can?(current_user, :create_deployment, environment) && environment.stoppable?
|
2016-10-17 06:45:31 -04:00
|
|
|
.inline
|
|
|
|
= link_to stop_namespace_project_environment_path(@project.namespace, @project, environment), method: :post,
|
2016-10-17 10:13:19 -04:00
|
|
|
class: 'btn close-env-link', rel: 'nofollow', data: { confirm: 'Are you sure you want to stop this environment?' } do
|
2016-10-17 06:45:31 -04:00
|
|
|
= icon('stop', class: 'close-env-icon')
|