debian-mirror-gitlab/app/views/projects/environments/_stop.html.haml
2017-09-10 17:25:29 +05:30

5 lines
346 B
Text

- if can?(current_user, :create_deployment, environment) && environment.stop_action?
.inline
= link_to stop_project_environment_path(@project, environment), method: :post,
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')