2017-12-05 09:03:16 -05:00
|
|
|
- membership_source = local_assigns.fetch(:membership_source)
|
|
|
|
- requesters = local_assigns.fetch(:requesters)
|
2017-07-05 15:17:02 -04:00
|
|
|
- force_mobile_view = local_assigns.fetch(:force_mobile_view, false)
|
|
|
|
|
2017-12-05 09:03:16 -05:00
|
|
|
- return if requesters.empty?
|
|
|
|
|
2018-04-10 13:11:34 -04:00
|
|
|
.card.prepend-top-default{ class: ('card-mobile' if force_mobile_view ) }
|
|
|
|
.card-header
|
2017-12-05 09:03:16 -05:00
|
|
|
Users requesting access to
|
|
|
|
%strong= membership_source.name
|
2018-04-09 12:33:41 -04:00
|
|
|
%span.badge.badge-pill= requesters.size
|
2017-12-05 09:03:16 -05:00
|
|
|
%ul.content-list.members-list
|
|
|
|
= render partial: 'shared/members/member', collection: requesters, as: :member, locals: { force_mobile_view: force_mobile_view }
|