summaryrefslogtreecommitdiff
path: root/app/views/projects/environments/_stop.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/environments/_stop.html.haml')
-rw-r--r--app/views/projects/environments/_stop.html.haml5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/projects/environments/_stop.html.haml b/app/views/projects/environments/_stop.html.haml
new file mode 100644
index 00000000000..69848123c17
--- /dev/null
+++ b/app/views/projects/environments/_stop.html.haml
@@ -0,0 +1,5 @@
+- 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')