2016-11-03 12:29:30 +05:30
|
|
|
- if can?(current_user, :create_deployment, deployment)
|
|
|
|
- actions = deployment.manual_actions
|
|
|
|
- if actions.present?
|
2017-08-17 22:00:37 +05:30
|
|
|
.btn-group
|
2016-11-03 12:29:30 +05:30
|
|
|
.dropdown
|
2018-11-18 11:00:15 +05:30
|
|
|
%button.dropdown.dropdown-new.btn.btn-default.has-tooltip{ type: 'button', 'data-toggle' => 'dropdown', title: s_('Environments|Deploy to...') }
|
|
|
|
= sprite_icon('play')
|
2016-11-03 12:29:30 +05:30
|
|
|
= icon('caret-down')
|
2018-11-08 19:23:39 +05:30
|
|
|
%ul.dropdown-menu.dropdown-menu-right
|
2016-11-03 12:29:30 +05:30
|
|
|
- actions.each do |action|
|
2017-08-17 22:00:37 +05:30
|
|
|
- next unless can?(current_user, :update_build, action)
|
2016-11-03 12:29:30 +05:30
|
|
|
%li
|
2018-11-18 11:00:15 +05:30
|
|
|
= link_to [:play, @project.namespace.becomes(Namespace), @project, action], method: :post, rel: 'nofollow', class: 'btn' do
|
2019-05-18 00:54:41 +05:30
|
|
|
%span= action.name
|