Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_actions.haml « deployments « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c96616a0be4df21e3896e32c341589bf03fc91b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
- if can?(current_user, :create_deployment, deployment)
  - actions = deployment.manual_actions
  - if actions.present?
    .btn-group
      .dropdown
        %button.dropdown.dropdown-new.btn.btn-default{ type: 'button', 'data-toggle' => 'dropdown' }
          = custom_icon('icon_play')
          = icon('caret-down')
        %ul.dropdown-menu
          - actions.each do |action|
            - next unless can?(current_user, :update_build, action)
            %li
              = link_to [:play, @project.namespace.becomes(Namespace), @project, action], method: :post, rel: 'nofollow' do
                = custom_icon('icon_play')
                %span= action.name.humanize