2017-02-07 07:30:33 -05:00
|
|
|
- if can?(current_user, :create_deployment, environment) && environment.stop_action?
|
2016-10-17 06:45:31 -04:00
|
|
|
.inline
|
2017-06-29 13:06:35 -04:00
|
|
|
= link_to stop_project_environment_path(@project, environment), method: :post,
|
2016-10-17 17:10:43 -04:00
|
|
|
class: 'btn stop-env-link', rel: 'nofollow', data: { confirm: 'Are you sure you want to stop this environment?' } do
|
|
|
|
= icon('stop', class: 'stop-env-icon')
|