debian-mirror-gitlab/app/views/shared/issuable/_sidebar_user_dropdown.html.haml

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

20 lines
787 B
Text
Raw Normal View History

2021-09-04 01:27:46 +05:30
- options = local_assigns.fetch(:options)
- data = options[:data]
2021-10-27 15:23:28 +05:30
- if can_admin_project_member?(@project)
2021-09-04 01:27:46 +05:30
- options[:dropdown_class] += ' dropdown-extended-height'
- options[:footer_content] = true
- options[:wrapper_class] = local_assigns.fetch(:wrapper_class)
- options[:toggle_class] += ' js-invite-members-track'
2021-11-11 11:23:49 +05:30
- data['track-action'] = 'show_invite_members'
2021-09-04 01:27:46 +05:30
- data['track-label'] = local_assigns.fetch(:track_label)
= dropdown_tag(data['dropdown-title'], options: options) do
%ul.dropdown-footer-list
%li
.js-invite-members-trigger{ data: { trigger_element: 'anchor',
display_text: _('Invite Members'),
2023-05-27 22:25:52 +05:30
trigger_source: local_assigns.fetch(:trigger_source) } }
2021-09-04 01:27:46 +05:30
- else
= dropdown_tag(data['dropdown-title'], options: options)