2017-12-05 09:03:16 -05:00
|
|
|
- project = local_assigns.fetch(:project)
|
|
|
|
- members = local_assigns.fetch(:members)
|
|
|
|
|
2018-04-10 13:11:34 -04:00
|
|
|
.card
|
|
|
|
.card-header.flex-project-members-panel
|
2017-04-24 14:24:51 -04:00
|
|
|
%span.flex-project-title
|
2019-04-01 05:07:22 -04:00
|
|
|
= _("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
|
2016-12-22 17:38:27 -05:00
|
|
|
.form-group
|
2018-06-12 17:57:17 -04:00
|
|
|
.position-relative
|
2019-01-14 16:39:42 -05:00
|
|
|
= 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")
|
2016-12-22 17:38:27 -05:00
|
|
|
= render 'shared/members/sort_dropdown'
|
2020-01-13 10:07:53 -05:00
|
|
|
%ul.content-list.members-list{ data: { qa_selector: 'members_list' } }
|
2016-10-06 10:41:00 -04:00
|
|
|
= render partial: 'shared/members/member', collection: members, as: :member
|