debian-mirror-gitlab/app/views/projects/environments/_stop.html.haml

6 lines
346 B
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
- if can?(current_user, :create_deployment, environment) && environment.stop_action?
2016-11-03 12:29:30 +05:30
.inline
2017-09-10 17:25:29 +05:30
= link_to stop_project_environment_path(@project, environment), method: :post,
2016-11-03 12:29:30 +05:30
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')