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 @@ ...@@ -14,10 +14,9 @@
= custom_icon('icon_play') = custom_icon('icon_play')
%span= action.name.humanize %span= action.name.humanize
- if :can_be_stopped? .inline
.inline %a.close-env-link.btn
%a.close-env-link.btn = icon('stop', class: 'close-env-icon')
= icon('stop', class: 'close-env-icon')
- if local_assigns.fetch(:allow_rollback, false) - if local_assigns.fetch(:allow_rollback, false)
= link_to [:retry, @project.namespace.becomes(Namespace), @project, deployment.deployable], method: :post, class: 'btn btn-build' do = link_to [:retry, @project.namespace.becomes(Namespace), @project, deployment.deployable], method: :post, class: 'btn btn-build' do
......
...@@ -14,5 +14,5 @@ ...@@ -14,5 +14,5 @@
%td %td
#{time_ago_with_tooltip(deployment.created_at)} #{time_ago_with_tooltip(deployment.created_at)}
%td %td.hidden-xs
= render 'projects/deployments/actions', deployment: deployment, allow_rollback: true = render 'projects/deployments/actions', deployment: deployment, allow_rollback: true
- last_deployment = environment.last_deployment - last_deployment = environment.last_deployment
- can_be_stopped = true
%tr.environment %tr.environment
%td %td
...@@ -22,4 +21,4 @@ ...@@ -22,4 +21,4 @@
#{time_ago_with_tooltip(last_deployment.created_at)} #{time_ago_with_tooltip(last_deployment.created_at)}
%td.hidden-xs %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 @@ ...@@ -42,5 +42,5 @@
%th Last Deployment %th Last Deployment
%th Commit %th Commit
%th %th
%th %th.hidden-xs
= render @environments = 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