gitlab-org--gitlab-foss/app/views/projects/environments/_stop.html.haml
2016-10-17 22:10:43 +01:00

5 lines
374 B
Text

- if can?(current_user, :create_deployment, environment) && environment.stoppable?
.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')