gitlab-org--gitlab-foss/app/views/projects/project_members/_team.html.haml

18 lines
967 B
Text
Raw Normal View History

- project = local_assigns.fetch(:project)
- members = local_assigns.fetch(:members)
.card
.card-header.flex-project-members-panel
2017-04-24 14:24:51 -04:00
%span.flex-project-title
= _("Members of <strong>%{project_name}</strong>").html_safe % { project_name: sanitize(project.name, tags: []) }
2018-04-09 12:33:41 -04:00
%span.badge.badge-pill= members.total_count
2019-01-25 15:53:00 -05:00
= form_tag project_project_members_path(project), method: :get, class: 'form-inline user-search-form flex-users-form' do
.form-group
2018-06-12 17:57:17 -04:00
.position-relative
= search_field_tag :search, params[:search], { placeholder: _('Find existing members by name'), class: 'form-control', spellcheck: false }
2019-01-25 15:53:00 -05:00
%button.user-search-btn{ type: "submit", "aria-label" => _("Submit search") }
2018-06-12 17:57:17 -04:00
= icon("search")
= render 'shared/members/sort_dropdown'
%ul.content-list.members-list{ data: { qa_selector: 'members_list' } }
= render partial: 'shared/members/member', collection: members, as: :member