2016-10-17 06:45:31 -04:00
|
|
|
- if can?(current_user, :create_deployment, deployment)
|
|
|
|
- actions = deployment.manual_actions
|
|
|
|
- if actions.present?
|
2017-03-08 06:14:28 -05:00
|
|
|
.btn-group
|
2016-10-17 06:45:31 -04:00
|
|
|
.dropdown
|
2017-03-08 06:14:28 -05:00
|
|
|
%button.dropdown.dropdown-new.btn.btn-default{ type: 'button', 'data-toggle' => 'dropdown' }
|
2016-10-17 06:45:31 -04:00
|
|
|
= custom_icon('icon_play')
|
|
|
|
= icon('caret-down')
|
|
|
|
%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
|
|
|
|
= custom_icon('icon_play')
|
|
|
|
%span= action.name.humanize
|