gitlab-org--gitlab-foss/app/views/groups/members.html.haml

42 lines
1.4 KiB
Text
Raw Normal View History

- show_roles = should_user_see_group_roles?(current_user, @group)
2013-08-06 13:12:20 -04:00
%h3.page-title
Group members
- if show_roles
%p.light
Members of group have access to all group projects.
Read more about permissions
%strong= link_to "here", help_page_path("permissions", "permissions"), class: "vlink"
2013-08-06 13:12:20 -04:00
%hr
.clearfix.js-toggle-container
= form_tag members_group_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 search-text-input input-mn-300' }
= submit_tag 'Search', class: 'btn'
- if current_user && current_user.can?(:manage_group, @group)
.pull-right
= link_to '#', class: 'btn btn-new js-toggle-button' do
Add members
2014-10-01 18:21:29 -04:00
%i.fa.fa-chevron-down
.js-toggle-content.hide.new-group-member-holder
= render "new_group_member"
.panel.panel-default.prepend-top-20
.panel-heading
2013-08-06 13:12:20 -04:00
%strong #{@group.name}
group members
%small
(#{@members.total_count})
2013-08-06 13:12:20 -04:00
%ul.well-list
- @members.each do |member|
= render 'groups/group_members/group_member', member: member, show_roles: show_roles, show_controls: true
= paginate @members, theme: 'gitlab'
:coffeescript
$('form.member-search-form').on 'submit', (event) ->
event.preventDefault()
Turbolinks.visit @.action + '?' + $(@).serialize()