debian-mirror-gitlab/app/views/groups/group_members/index.html.haml

37 lines
1.3 KiB
Text
Raw Normal View History

2015-09-11 14:41:01 +05:30
- page_title "Members"
2014-09-02 18:07:02 +05:30
.group-members-page.prepend-top-default
2015-09-11 14:41:01 +05:30
- if current_user && current_user.can?(:admin_group_member, @group)
2015-12-23 02:04:40 +05:30
.panel.panel-default
.panel-heading
Add new user to group
.panel-body
- if should_user_see_group_roles?(current_user, @group)
%p.light
Members of group have access to all group projects.
.new-group-member-holder
= render "new_group_member"
2015-04-26 12:48:37 +05:30
2015-12-23 02:04:40 +05:30
.panel.panel-default
.panel-heading
%strong #{@group.name}
group members
%small
(#{@members.total_count})
2016-04-02 18:10:28 +05:30
.controls
2015-12-23 02:04:40 +05:30
= 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
- @members.each do |member|
= render 'groups/group_members/group_member', member: member, show_controls: true
= paginate @members, theme: 'gitlab'
2014-09-02 18:07:02 +05:30
2015-11-26 14:37:03 +05:30
:javascript
$('form.member-search-form').on('submit', function(event) {
event.preventDefault();
Turbolinks.visit(this.action + '?' + $(this).serialize());
});