515205d3c1
+ Move 'Edit Project/Group' out of membership-related partial + Show the access request buttons only to logged-in users + Put the request access buttons out of in a more visible button + Improve the copy in the #remove_member_message helper Signed-off-by: Rémy Coutable <remy@rymai.me>
36 lines
1.3 KiB
Text
36 lines
1.3 KiB
Text
- page_title "Members"
|
|
|
|
.group-members-page.prepend-top-default
|
|
- if current_user && current_user.can?(:admin_group_member, @group)
|
|
.panel.panel-default
|
|
.panel-heading
|
|
Add new user to group
|
|
.panel-body
|
|
%p.light
|
|
Members of group have access to all group projects.
|
|
.new-group-member-holder
|
|
= render "new_group_member"
|
|
|
|
= render 'shared/members/requests', membership_source: @group, members: @members.request
|
|
|
|
.panel.panel-default
|
|
.panel-heading
|
|
%strong #{@group.name}
|
|
group members
|
|
%small
|
|
(#{@members.total_count})
|
|
.controls
|
|
= form_tag group_group_members_path(@group), method: :get, class: 'form-inline member-search-form' do
|
|
.form-group
|
|
= search_field_tag :search, params[:search], { placeholder: 'Find existing member by name', class: 'form-control', spellcheck: false }
|
|
= button_tag class: 'btn', title: 'Search' do
|
|
= icon("search")
|
|
%ul.content-list
|
|
= render partial: 'shared/members/member', collection: @members.non_request, as: :member
|
|
= paginate @members.non_request, theme: 'gitlab'
|
|
|
|
:javascript
|
|
$('form.member-search-form').on('submit', function(event) {
|
|
event.preventDefault();
|
|
Turbolinks.visit(this.action + '?' + $(this).serialize());
|
|
});
|