gitlab-org--gitlab-foss/app/views/shared/members/_requests.html.haml
Tao Wang 5e8ea61ecd i18n: externalize strings from 'app/views/shared/members'
Signed-off-by: Tao Wang <twang2218@gmail.com>
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-11-26 14:43:05 +02:00

13 lines
583 B
Text

- membership_source = local_assigns.fetch(:membership_source)
- requesters = local_assigns.fetch(:requesters)
- force_mobile_view = local_assigns.fetch(:force_mobile_view, false)
- return if requesters.empty?
.card.prepend-top-default{ class: ('card-mobile' if force_mobile_view ) }
.card-header
= _("Users requesting access to")
%strong= membership_source.name
%span.badge.badge-pill= requesters.size
%ul.content-list.members-list
= render partial: 'shared/members/member', collection: requesters, as: :member, locals: { force_mobile_view: force_mobile_view }