2016-11-03 12:29:30 +05:30
|
|
|
- if can?(current_user, :create_deployment, deployment)
|
|
|
|
- actions = deployment.manual_actions
|
|
|
|
- if actions.present?
|
|
|
|
.inline
|
|
|
|
.dropdown
|
|
|
|
%a.dropdown-new.btn.btn-default{type: 'button', 'data-toggle' => 'dropdown'}
|
|
|
|
= 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
|
2016-08-24 12:49:21 +05:30
|
|
|
|