提交 34a98085 编写于 作者: F Filipa Lacerda 提交者: Kamil Trzcinski

Adds close button to builds list

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册