debian-mirror-gitlab/app/views/projects/deployments/_actions.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
667 B
Text
Raw Normal View History

2023-01-13 00:05:48 +05:30
- if can?(current_user, :read_deployment, deployment)
2016-11-03 12:29:30 +05:30
- 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
2021-01-03 14:25:43 +05:30
%button.dropdown.dropdown-new.btn.gl-button.btn-default.has-tooltip{ type: 'button', 'data-toggle' => 'dropdown', title: s_('Environments|Deploy to...') }
2018-11-18 11:00:15 +05:30
= sprite_icon('play')
2021-02-22 17:27:13 +05:30
= sprite_icon('chevron-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|
2023-01-13 00:05:48 +05:30
- next unless can?(current_user, :play_job, action)
2016-11-03 12:29:30 +05:30
%li
2020-10-24 23:57:45 +05:30
= link_to [:play, @project, action], method: :post, rel: 'nofollow' do
2019-07-07 11:18:12 +05:30
%span= action.name