2016-08-24 12:49:21 +05:30
|
|
|
- if can?(current_user, :create_deployment, deployment) && deployment.deployable
|
|
|
|
.pull-right
|
|
|
|
- actions = deployment.manual_actions
|
|
|
|
- if actions.present?
|
2016-09-13 17:45:13 +05:30
|
|
|
.inline
|
|
|
|
.dropdown
|
|
|
|
%a.dropdown-new.btn.btn-default{type: 'button', 'data-toggle' => 'dropdown'}
|
2016-09-29 09:46:39 +05:30
|
|
|
= custom_icon('icon_play')
|
2016-08-24 12:49:21 +05:30
|
|
|
%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
|
2016-09-29 09:46:39 +05:30
|
|
|
= custom_icon('icon_play')
|
2016-08-24 12:49:21 +05:30
|
|
|
%span= action.name.humanize
|
|
|
|
|
|
|
|
- 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?
|
|
|
|
Re-deploy
|
|
|
|
- else
|
|
|
|
Rollback
|