gitlab-org--gitlab-foss/app/views/projects/deployments/_actions.haml
Filipa Lacerda 5892e9968b Removes extra btn class from dropdown
In the deployments page, the links inside a
dropdown had an extra btn class
2019-04-09 09:49:57 +01:00

14 lines
693 B
Text

- if can?(current_user, :create_deployment, deployment)
- actions = deployment.manual_actions
- if actions.present?
.btn-group
.dropdown
%button.dropdown.dropdown-new.btn.btn-default.has-tooltip{ type: 'button', 'data-toggle' => 'dropdown', title: s_('Environments|Deploy to...') }
= sprite_icon('play')
= icon('caret-down')
%ul.dropdown-menu.dropdown-menu-right
- 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
%span= action.name