2016-07-16 19:48:51 -04:00
|
|
|
- if can?(current_user, :create_deployment, deployment) && deployment.deployable
|
|
|
|
.pull-right
|
|
|
|
- actions = deployment.manual_actions
|
|
|
|
- if actions.present?
|
2016-08-05 13:44:13 -04:00
|
|
|
.inline
|
|
|
|
.dropdown
|
|
|
|
%a.dropdown-new.btn.btn-default{type: 'button', 'data-toggle' => 'dropdown'}
|
2016-07-16 19:48:51 -04:00
|
|
|
= icon("play")
|
|
|
|
%b.caret
|
|
|
|
%ul.dropdown-menu.dropdown-menu-align-right
|
|
|
|
- actions.each do |action|
|
|
|
|
%li
|
|
|
|
= link_to [:play, @project.namespace.becomes(Namespace), @project, action], method: :post, rel: 'nofollow' do
|
|
|
|
= icon("play")
|
2016-07-18 12:42:57 -04:00
|
|
|
%span= action.name.humanize
|
2016-07-16 19:48:51 -04:00
|
|
|
|
2016-07-18 13:00:55 -04:00
|
|
|
- if local_assigns.fetch(:allow_rollback, false)
|
2016-07-16 19:48:51 -04:00
|
|
|
= link_to [:retry, @project.namespace.becomes(Namespace), @project, deployment.deployable], method: :post, class: 'btn btn-build' do
|
|
|
|
- if deployment.last?
|
2016-07-20 16:48:10 -04:00
|
|
|
Re-deploy
|
2016-07-16 19:48:51 -04:00
|
|
|
- else
|
|
|
|
Rollback
|