2018-03-17 18:26:18 +05:30
|
|
|
- membership_source = local_assigns.fetch(:membership_source)
|
|
|
|
- requesters = local_assigns.fetch(:requesters)
|
2017-09-10 17:25:29 +05:30
|
|
|
- force_mobile_view = local_assigns.fetch(:force_mobile_view, false)
|
2021-01-29 00:20:46 +05:30
|
|
|
- group = local_assigns.fetch(:group)
|
|
|
|
- current_user_is_group_owner = group && group.has_owner?(current_user)
|
2017-09-10 17:25:29 +05:30
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
- return if requesters.empty?
|
|
|
|
|
2020-07-28 23:09:34 +05:30
|
|
|
.card.gl-mt-3{ class: ('card-mobile' if force_mobile_view ) }
|
2018-11-08 19:23:39 +05:30
|
|
|
.card-header
|
2019-02-15 15:39:39 +05:30
|
|
|
= _("Users requesting access to")
|
2018-03-17 18:26:18 +05:30
|
|
|
%strong= membership_source.name
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.badge.badge-pill= requesters.size
|
2018-03-17 18:26:18 +05:30
|
|
|
%ul.content-list.members-list
|
2021-01-29 00:20:46 +05:30
|
|
|
= render partial: 'shared/members/member',
|
|
|
|
collection: requesters, as: :member,
|
|
|
|
locals: { membership_source: membership_source,
|
|
|
|
group: group,
|
|
|
|
force_mobile_view: force_mobile_view,
|
|
|
|
current_user_is_group_owner: current_user_is_group_owner }
|