summaryrefslogtreecommitdiff
path: root/app/views/projects/deployments
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2016-10-04 21:26:33 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2016-10-06 13:16:14 +0200
commitbc49974d94c8ddec59fbc3ebaf16a0e00269e647 (patch)
treecfe46f8c746917c06daa312ba2c10850502d8c88 /app/views/projects/deployments
parent08e708579213b5ee2ed80f1fd8d3966a897ed6ff (diff)
downloadgitlab-ce-bc49974d94c8ddec59fbc3ebaf16a0e00269e647.tar.gz
Adds stop environment button to environments list
Diffstat (limited to 'app/views/projects/deployments')
-rw-r--r--app/views/projects/deployments/_actions.haml5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/projects/deployments/_actions.haml b/app/views/projects/deployments/_actions.haml
index 16d134eb6b6..a1d9da285c0 100644
--- a/app/views/projects/deployments/_actions.haml
+++ b/app/views/projects/deployments/_actions.haml
@@ -14,6 +14,11 @@
= custom_icon('icon_play')
%span= action.name.humanize
+ - if :can_be_stopped?
+ .inline
+ %a.close-env-link.btn
+ = icon('stop', class: 'close-env-icon')
+
- if local_assigns.fetch(:allow_rollback, false)
= link_to [:retry, @project.namespace.becomes(Namespace), @project, deployment.deployable], method: :post, class: 'btn btn-build' do
- if deployment.last?