2018-03-17 18:26:18 +05:30
|
|
|
- project = local_assigns.fetch(:project)
|
|
|
|
- members = local_assigns.fetch(:members)
|
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
.card
|
|
|
|
.card-header.flex-project-members-panel
|
2017-08-17 22:00:37 +05:30
|
|
|
%span.flex-project-title
|
2019-07-07 11:18:12 +05:30
|
|
|
= _("Members of <strong>%{project_name}</strong>").html_safe % { project_name: sanitize(project.name, tags: []) }
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.badge.badge-pill= members.total_count
|
2019-10-12 21:52:04 +05:30
|
|
|
= form_tag project_project_members_path(project), method: :get, class: 'form-inline user-search-form flex-users-form' do
|
2017-08-17 22:00:37 +05:30
|
|
|
.form-group
|
2018-11-08 19:23:39 +05:30
|
|
|
.position-relative
|
2019-03-02 22:35:43 +05:30
|
|
|
= search_field_tag :search, params[:search], { placeholder: _('Find existing members by name'), class: 'form-control', spellcheck: false }
|
2019-10-12 21:52:04 +05:30
|
|
|
%button.user-search-btn{ type: "submit", "aria-label" => _("Submit search") }
|
2018-11-08 19:23:39 +05:30
|
|
|
= icon("search")
|
2017-08-17 22:00:37 +05:30
|
|
|
= render 'shared/members/sort_dropdown'
|
2018-12-13 13:39:08 +05:30
|
|
|
%ul.content-list.members-list.qa-members-list
|
2016-06-16 23:09:34 +05:30
|
|
|
= render partial: 'shared/members/member', collection: members, as: :member
|