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

6 lines
376 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
= link_to stop_namespace_project_environment_path(@project.namespace, @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')