2014-02-13 15:45:51 -05:00
|
|
|
- show_roles = should_user_see_group_roles?(current_user, @group)
|
2013-08-06 13:12:20 -04:00
|
|
|
%h3.page-title
|
|
|
|
Group members
|
2014-02-13 15:45:51 -05:00
|
|
|
- if show_roles
|
|
|
|
%p.light
|
|
|
|
Members of group have access to all group projects.
|
|
|
|
Read more about permissions
|
2014-05-28 09:58:02 -04:00
|
|
|
%strong= link_to "here", help_page_path("permissions", "permissions"), class: "vlink"
|
2013-09-26 08:08:33 -04:00
|
|
|
|
2013-08-06 13:12:20 -04:00
|
|
|
%hr
|
2014-02-13 04:00:44 -05:00
|
|
|
|
2014-03-11 09:15:08 -04:00
|
|
|
.clearfix.js-toggle-container
|
2014-02-13 04:00:44 -05:00
|
|
|
= form_tag members_group_path(@group), method: :get, class: 'form-inline member-search-form' do
|
|
|
|
.form-group
|
2014-04-08 05:11:14 -04:00
|
|
|
= search_field_tag :search, params[:search], { placeholder: 'Find existing member by name', class: 'form-control search-text-input input-mn-300' }
|
2014-09-26 10:57:36 -04:00
|
|
|
= button_tag 'Search', class: 'btn'
|
2014-02-13 04:00:44 -05:00
|
|
|
|
2014-02-13 15:45:51 -05:00
|
|
|
- if current_user && current_user.can?(:manage_group, @group)
|
2014-02-13 04:00:44 -05:00
|
|
|
.pull-right
|
2014-09-30 10:39:37 -04:00
|
|
|
= button_tag class: 'btn btn-new js-toggle-button', type: 'button' do
|
2014-02-13 04:00:44 -05:00
|
|
|
Add members
|
2014-10-01 18:21:29 -04:00
|
|
|
%i.fa.fa-chevron-down
|
2014-02-13 04:00:44 -05:00
|
|
|
|
2014-03-11 09:15:08 -04:00
|
|
|
.js-toggle-content.hide.new-group-member-holder
|
2014-02-13 04:00:44 -05:00
|
|
|
= render "new_group_member"
|
|
|
|
|
2014-05-29 11:42:44 -04:00
|
|
|
.panel.panel-default.prepend-top-20
|
2014-05-29 11:43:21 -04:00
|
|
|
.panel-heading
|
2013-08-06 13:12:20 -04:00
|
|
|
%strong #{@group.name}
|
|
|
|
group members
|
|
|
|
%small
|
2014-02-13 04:00:44 -05:00
|
|
|
(#{@members.total_count})
|
2013-08-06 13:12:20 -04:00
|
|
|
%ul.well-list
|
|
|
|
- @members.each do |member|
|
2014-09-14 14:52:54 -04:00
|
|
|
= render 'groups/group_members/group_member', member: member, show_roles: show_roles, show_controls: true
|
2014-02-13 04:00:44 -05:00
|
|
|
= paginate @members, theme: 'gitlab'
|
|
|
|
|
|
|
|
:coffeescript
|
|
|
|
$('form.member-search-form').on 'submit', (event) ->
|
|
|
|
event.preventDefault()
|
|
|
|
Turbolinks.visit @.action + '?' + $(@).serialize()
|