Commit 34a98085 authored by Filipa Lacerda's avatar Filipa Lacerda Committed by Kamil Trzcinski

Adds close button to builds list

parent ed975fdc
......@@ -14,10 +14,9 @@
= custom_icon('icon_play')
%span= action.name.humanize
- if :can_be_stopped?
.inline
%a.close-env-link.btn
= icon('stop', class: 'close-env-icon')
.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
......
......@@ -14,5 +14,5 @@
%td
#{time_ago_with_tooltip(deployment.created_at)}
%td
%td.hidden-xs
= render 'projects/deployments/actions', deployment: deployment, allow_rollback: true
- last_deployment = environment.last_deployment
- can_be_stopped = true
%tr.environment
%td
......@@ -22,4 +21,4 @@
#{time_ago_with_tooltip(last_deployment.created_at)}
%td.hidden-xs
= render 'projects/deployments/actions', deployment: last_deployment, can_be_stopped: can_be_stopped
= render 'projects/deployments/actions', deployment: last_deployment
......@@ -42,5 +42,5 @@
%th Last Deployment
%th Commit
%th
%th
%th.hidden-xs
= render @environments
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment