debian-mirror-gitlab/app/views/projects/project_members/_team.html.haml

23 lines
1.4 KiB
Text
Raw Normal View History

2018-03-17 18:26:18 +05:30
- project = local_assigns.fetch(:project)
- members = local_assigns.fetch(:members)
2021-01-29 00:20:46 +05:30
- group = local_assigns.fetch(:group)
2021-03-08 18:12:59 +05:30
- current_user_is_group_owner = local_assigns.fetch(:current_user_is_group_owner)
2018-03-17 18:26:18 +05:30
2021-03-08 18:12:59 +05:30
.card.card-without-border
= render 'shared/members/tab_pane/header' do
= render 'shared/members/tab_pane/title' do
2020-10-24 23:57:45 +05:30
= html_escape(_("Members of %{strong_open}%{project_name}%{strong_close}")) % { project_name: sanitize(project.name, tags: []), strong_open: '<strong>'.html_safe, strong_close: '</strong>'.html_safe }
2021-03-08 18:12:59 +05:30
= form_tag project_project_members_path(project), method: :get, class: 'user-search-form gl-display-flex gl-md-align-items-center gl-flex-wrap gl-flex-direction-column gl-md-flex-direction-row gl-mx-n3 gl-my-n3', data: { testid: 'user-search-form' } do
.gl-px-3.gl-py-2
.search-control-wrap.gl-relative
= render 'shared/members/search_field'
= render 'shared/members/tab_pane/form_item' do
= label_tag :sort_by, _('Sort by'), class: 'label-bold gl-mr-2 gl-mb-0 gl-py-2 align-self-md-center'
2017-08-17 22:00:37 +05:30
= render 'shared/members/sort_dropdown'
2021-01-29 00:20:46 +05:30
%ul.content-list.members-list{ data: { qa_selector: 'members_list', testid: 'members-table' } }
= render partial: 'shared/members/member',
collection: members, as: :member,
locals: { membership_source: project,
group: group,
current_user_is_group_owner: current_user_is_group_owner }